TYPO3
7.6
|
Static Public Member Functions | |
static | isInitialized () |
static | addIconSprite (array $icons, $styleSheetFile= '') |
static | addSingleIcons (array $icons, $extKey= '') |
static | addTcaTypeIcon ($table, $type, $iconFile) |
Static Public Attributes | |
static | $tempPath = 'typo3temp/sprites/' |
Static Protected Member Functions | |
static | getCacheIdentifier () |
Static Protected Attributes | |
static | $isInitialized = false |
TYPO3 sprite manager, used in BE and in FE if a BE user is logged in.
This class builds CSS definitions of registered icons, writes TCA definitions and registers sprite icons in a cache file.
A configurable handler class does the business task.
Definition at line 28 of file SpriteManager.php.
|
static |
API for extensions to register own sprites.
Get an array of icon names and the styleSheetFile with defined sprite icons. The stylesheet filename should contain the extension name to be unique.
Naming conventions:
array | $icons | Icon names |
string | $styleSheetFile | Stylesheet filename relative to PATH_typo3. Skins do not need to supply the $styleSheetFile, if the CSS file is within the registered stylesheet folders |
Definition at line 142 of file SpriteManager.php.
References GeneralUtility\deprecationLog().
|
static |
API for extensions to register new sprite images which can be used with ::getSpriteIcon('extensions-$extKey-iconName');
array | $icons | Icons to be registered, $iconname => $iconFile, $iconFile must be relative to PATH_site |
string | $extKey | Extension key |
Definition at line 160 of file SpriteManager.php.
References GeneralUtility\deprecationLog().
Referenced by SpriteManagerTest\addSingleIconsWithEmptyValueSetsArrayKey(), SpriteManagerTest\addSingleIconsWithEmptyValueSetsImagePathValue(), SpriteManagerTest\addSingleIconsWithNormalValueSetsArrayKey(), and SpriteManagerTest\addSingleIconsWithNormalValueSetsImagePathValue().
|
static |
API to register new type icons for tables which use "typeicon_classes" Can be used to provide icons for "modules" in pages table
string | $table | Table name to which the type icon should be added |
string | $type | Type column name of the table |
string | $iconFile | Icon filename, relative to PATH_typo3 |
Definition at line 178 of file SpriteManager.php.
References GeneralUtility\deprecationLog().
Referenced by SpriteManagerTest\addTcaTypeIconWithEmptyValueSetsArrayKey(), SpriteManagerTest\addTcaTypeIconWithEmptyValueSetsEmptyArrayValue(), SpriteManagerTest\addTcaTypeIconWithTableAndTypeAndValueSetsArrayValue(), and SpriteManagerTest\addTcaTypeIconWithTableAndTypeSetsArrayKey().
|
staticprotected |
Get cache identifier for $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable']
Definition at line 121 of file SpriteManager.php.
|
static |
Whether the sprite manager is initialized.
Definition at line 68 of file SpriteManager.php.
|
staticprotected |
Is sprite manager initialized
Definition at line 38 of file SpriteManager.php.
|
static |
Definition at line 33 of file SpriteManager.php.
Referenced by AbstractSpriteHandler\__construct(), SpriteBuildingHandler\generate(), and AbstractSpriteHandler\loadRegisteredSprites().