TYPO3
7.6
|
Public Member Functions | |
__construct () | |
isRegistered ($identifier) | |
isDeprecated ($identifier) | |
getDefaultIconIdentifier () | |
registerIcon ($identifier, $iconProviderClassName, array $options=array()) | |
registerFileExtension ($fileExtension, $iconIdentifier) | |
registerMimeTypeIcon ($mimeType, $iconIdentifier) | |
getIconConfigurationByIdentifier ($identifier) | |
getDeprecationSettings ($identifier) | |
getAllRegisteredIconIdentifiers () | |
getIconIdentifierForFileExtension ($fileExtension) | |
getIconIdentifierForMimeType ($mimeType) | |
Protected Member Functions | |
registerTCAIcons () | |
registerFlags () | |
Protected Attributes | |
$tcaInitialized = false | |
$flagsInitialized = false | |
$icons | |
$fileExtensionMapping | |
$mimeTypeMapping | |
$deprecatedIcons | |
$defaultIconIdentifier = 'default-not-found' | |
Class IconRegistry, which makes it possible to register custom icons from within an extension.
Definition at line 28 of file IconRegistry.php.
__construct | ( | ) |
The constructor
Definition at line 2572 of file IconRegistry.php.
References $GLOBALS, IconRegistry\registerFlags(), and IconRegistry\registerTCAIcons().
getAllRegisteredIconIdentifiers | ( | ) |
Definition at line 2698 of file IconRegistry.php.
getDefaultIconIdentifier | ( | ) |
Definition at line 2603 of file IconRegistry.php.
References IconRegistry\$defaultIconIdentifier.
getDeprecationSettings | ( | $identifier | ) |
string | $identifier |
Exception |
Definition at line 2686 of file IconRegistry.php.
References IconRegistry\isDeprecated().
Referenced by IconRegistry\getIconConfigurationByIdentifier().
getIconConfigurationByIdentifier | ( | $identifier | ) |
Fetches the configuration provided by registerIcon()
string | $identifier | the icon identifier |
Exception |
Definition at line 2657 of file IconRegistry.php.
References $GLOBALS, GeneralUtility\deprecationLog(), IconRegistry\getDeprecationSettings(), IconRegistry\isDeprecated(), IconRegistry\isRegistered(), IconRegistry\registerFlags(), and IconRegistry\registerTCAIcons().
getIconIdentifierForFileExtension | ( | $fileExtension | ) |
getIconIdentifierForMimeType | ( | $mimeType | ) |
Get iconIdentifier for given mimeType
string | $mimeType |
Definition at line 2722 of file IconRegistry.php.
isDeprecated | ( | $identifier | ) |
string | $identifier |
Definition at line 2595 of file IconRegistry.php.
Referenced by IconRegistry\getDeprecationSettings(), and IconRegistry\getIconConfigurationByIdentifier().
isRegistered | ( | $identifier | ) |
string | $identifier |
Definition at line 2585 of file IconRegistry.php.
Referenced by IconRegistry\getIconConfigurationByIdentifier(), and IconRegistry\registerTCAIcons().
registerFileExtension | ( | $fileExtension, | |
$iconIdentifier | |||
) |
Register an icon for a file extension
string | $fileExtension | |
string | $iconIdentifier |
Definition at line 2634 of file IconRegistry.php.
|
protected |
register flags
Definition at line 2796 of file IconRegistry.php.
Referenced by IconRegistry\__construct(), and IconRegistry\getIconConfigurationByIdentifier().
registerIcon | ( | $identifier, | |
$iconProviderClassName, | |||
array | $options = array() |
||
) |
Registers an icon to be available inside the Icon Factory
string | $identifier | |
string | $iconProviderClassName | |
array | $options |
\InvalidArgumentException |
Definition at line 2617 of file IconRegistry.php.
registerMimeTypeIcon | ( | $mimeType, | |
$iconIdentifier | |||
) |
Register an icon for a mime-type
string | $mimeType | |
string | $iconIdentifier |
Definition at line 2645 of file IconRegistry.php.
|
protected |
Load icons from TCA for each table and add them as "tcarecords-XX" to $this->icons
Definition at line 2733 of file IconRegistry.php.
References $GLOBALS, StringUtility\beginsWith(), elseif, StringUtility\endsWith(), IconRegistry\isRegistered(), and GeneralUtility\resolveBackPath().
Referenced by IconRegistry\__construct(), and IconRegistry\getIconConfigurationByIdentifier().
|
protected |
Definition at line 2567 of file IconRegistry.php.
Referenced by IconRegistry\getDefaultIconIdentifier().
|
protected |
Definition at line 2553 of file IconRegistry.php.
|
protected |
Definition at line 2452 of file IconRegistry.php.
|
protected |
Definition at line 38 of file IconRegistry.php.
|
protected |
Definition at line 45 of file IconRegistry.php.
|
protected |
Definition at line 2531 of file IconRegistry.php.
|
protected |
Definition at line 33 of file IconRegistry.php.