TYPO3 CMS  TYPO3_6-2
SpriteBuildingHandler.php
Go to the documentation of this file.
1 <?php
3 
18 
25 
29  protected $generatorInstance = NULL;
30 
37  public function generate() {
38  $this->generatorInstance = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Sprite\\SpriteGenerator', 'GeneratorHandler');
39  $this->generatorInstance
40  ->setOmitSpriteNameInIconName(TRUE)
41  ->setIncludeTimestampInCSS(TRUE)
42  ->setSpriteFolder(SpriteManager::$tempPath)
43  ->setCSSFolder(SpriteManager::$tempPath);
44  $iconsToProcess = array_merge((array) $GLOBALS['TBE_STYLES']['spritemanager']['singleIcons'], $this->collectTcaSpriteIcons());
45  foreach ($iconsToProcess as $iconName => $iconFile) {
46  $iconsToProcess[$iconName] = GeneralUtility::resolveBackPath('typo3/' . $iconFile);
47  }
48  $generatorResponse = $this->generatorInstance->generateSpriteFromArray($iconsToProcess);
49  $this->iconNames = array_merge($this->iconNames, $generatorResponse['iconNames']);
50  parent::generate();
51  }
52 
53 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]