![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
registerFileCollectionClass ($className, $type, $override=false) | |
addTypeToTCA ($type, $label, $availableFields, array $additionalColumns=array()) | |
getFileCollectionClass ($type) | |
fileCollectionTypeExists ($type) | |
Protected Attributes | |
$types = array() | |
Registry for FileCollection classes
Definition at line 20 of file FileCollectionRegistry.php.
__construct | ( | ) |
Constructor
Definition at line 32 of file FileCollectionRegistry.php.
References $GLOBALS, and FileCollectionRegistry\registerFileCollectionClass().
addTypeToTCA | ( | $type, | |
$label, | |||
$availableFields, | |||
array | $additionalColumns = array() |
||
) |
Add the type to the TCA of sys_file_collection
string | $type | |
string | $label | |
string | $availableFields | comma separated list of fields to show |
array | $additionalColumns | Additional columns configuration |
Definition at line 84 of file FileCollectionRegistry.php.
References $GLOBALS.
fileCollectionTypeExists | ( | $type | ) |
Checks if the given FileCollection type exists
string | $type | Type of the FileCollection |
Definition at line 131 of file FileCollectionRegistry.php.
getFileCollectionClass | ( | $type | ) |
Returns a class name for a given type
string | $type |
\InvalidArgumentException |
Definition at line 117 of file FileCollectionRegistry.php.
registerFileCollectionClass | ( | $className, | |
$type, | |||
$override = false |
|||
) |
Register a (new) FileCollection type
string | $className | |
string | $type | FileCollection type max length 30 chars (db field restriction) |
bool | $override | existing FileCollection type |
\InvalidArgumentException |
Definition at line 48 of file FileCollectionRegistry.php.
References elseif.
Referenced by FileCollectionRegistry\__construct().
|
protected |
Definition at line 27 of file FileCollectionRegistry.php.