当前位置: 首页>>代码示例>>PHP>>正文


PHP SpriteManager::initialize方法代码示例

本文整理汇总了PHP中TYPO3\CMS\Backend\Sprite\SpriteManager::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP SpriteManager::initialize方法的具体用法?PHP SpriteManager::initialize怎么用?PHP SpriteManager::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TYPO3\CMS\Backend\Sprite\SpriteManager的用法示例。


在下文中一共展示了SpriteManager::initialize方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 /**
  * Set up test case
  *
  * @return void
  */
 public function setUp()
 {
     // Initialize sprites (done only once)
     \TYPO3\CMS\Backend\Sprite\SpriteManager::initialize();
     // Backup sprites because they will be reset by PHPUnit global backup
     if (empty(self::$tbeStylesBackup)) {
         self::$tbeStylesBackup = $GLOBALS['TBE_STYLES'];
     } else {
         // Restore the internal backup
         $GLOBALS['TBE_STYLES'] = self::$tbeStylesBackup;
     }
     // Simulate a tt_content record
     $this->mockRecord = array();
     $this->mockRecord['header'] = 'dummy content header';
     $this->mockRecord['uid'] = '1';
     $this->mockRecord['pid'] = '1';
     $this->mockRecord['image'] = '';
     $this->mockRecord['hidden'] = '0';
     $this->mockRecord['starttime'] = '0';
     $this->mockRecord['endtime'] = '0';
     $this->mockRecord['fe_group'] = '';
     $this->mockRecord['CType'] = 'text';
     $this->mockRecord['t3ver_id'] = '0';
     $this->mockRecord['t3ver_state'] = '0';
     $this->mockRecord['t3ver_wsid'] = '0';
     $this->mockRecord['sys_language_uid'] = '0';
     $this->mockRecord['l18n_parent'] = '0';
     $this->mockRecord['subheader'] = '';
     $this->mockRecord['bodytext'] = '';
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:35,代码来源:IconUtilityTest.php

示例2: setUp

 public function setUp()
 {
     $this->oSelector = tx_rnbase::makeInstance('tx_mklib_mod1_util_Selector');
     $this->oMod = tx_rnbase::makeInstance('tx_mklib_tests_fixtures_classes_DummyMod');
     $this->oSelector->init($this->oMod);
     $this->sModuleKey = 'testSearch';
     //Modul daten zurücksetzen
     $GLOBALS['BE_USER']->uc['moduleData'][$this->oMod->getName()] = null;
     $_GET['SET'] = null;
     //für cli
     $GLOBALS['TBE_TEMPLATE'] = t3lib_div::makeInstance('template');
     $GLOBALS['CLIENT']['FORMSTYLE'] = 'something';
     //sprache auf default setzen damit wir die richtigen labels haben
     $GLOBALS['LANG']->lang = 'default';
     //damit labels geladen sind
     global $LOCAL_LANG;
     //ab typo 4.6 ist das mit den lang labels anders
     $mHideEntry = 'Hide hidden entries';
     $mShowEntry = 'Show hidden entries';
     if (tx_rnbase_util_TYPO3::isTYPO46OrHigher()) {
         $LOCAL_LANG['default']['label_select_hide_hidden'][0]['target'] = $mHideEntry;
         $LOCAL_LANG['default']['label_select_show_hidden'][0]['target'] = $mShowEntry;
     } else {
         $LOCAL_LANG['default']['label_select_hide_hidden'] = $mHideEntry;
         $LOCAL_LANG['default']['label_select_show_hidden'] = $mShowEntry;
     }
     // sonst fehler die icon klassen
     if (tx_rnbase_util_TYPO3::isTYPO60OrHigher()) {
         \TYPO3\CMS\Backend\Sprite\SpriteManager::initialize();
     }
 }
开发者ID:RocKordier,项目名称:typo3-mklib,代码行数:31,代码来源:class.tx_mklib_tests_mod1_util_Selector_testcase.php

示例3: setUp

 /**
  * Set up test case
  *
  * @return void
  */
 public function setUp()
 {
     if (!\TYPO3\CMS\Backend\Sprite\SpriteManager::isInitialized()) {
         \TYPO3\CMS\Backend\Sprite\SpriteManager::initialize();
     }
     // Simulate a tt_content record
     $this->mockRecord = array();
     $this->mockRecord['header'] = 'dummy content header';
     $this->mockRecord['uid'] = '1';
     $this->mockRecord['pid'] = '1';
     $this->mockRecord['image'] = '';
     $this->mockRecord['hidden'] = '0';
     $this->mockRecord['starttime'] = '0';
     $this->mockRecord['endtime'] = '0';
     $this->mockRecord['fe_group'] = '';
     $this->mockRecord['CType'] = 'text';
     $this->mockRecord['t3ver_id'] = '0';
     $this->mockRecord['t3ver_state'] = '0';
     $this->mockRecord['t3ver_wsid'] = '0';
     $this->mockRecord['sys_TYPO3\\CMS\\Lang\\LanguageService_uid'] = '0';
     $this->mockRecord['l18n_parent'] = '0';
     $this->mockRecord['subheader'] = '';
     $this->mockRecord['bodytext'] = '';
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:29,代码来源:IconUtilityTest.php

示例4: initializeSpriteManager

 /**
  * Initialize sprite manager
  *
  * @return \TYPO3\CMS\Core\Core\Bootstrap
  * @internal This is not a public API method, do not use in own extensions
  */
 public function initializeSpriteManager()
 {
     \TYPO3\CMS\Backend\Sprite\SpriteManager::initialize();
     return $this;
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:11,代码来源:Bootstrap.php

示例5: initializeSpriteManager

 /**
  * Initialize sprite manager
  *
  * @return Bootstrap
  * @internal This is not a public API method, do not use in own extensions
  * @deprecated since TYPO3 CMS 7, will be removed with TYPO3 CMS 8
  */
 public function initializeSpriteManager()
 {
     // This method is deprecated since TYPO3 CMS 7, will be removed with TYPO3 CMS 8
     // This method does not log a deprecation message, because it is used only in the request handlers
     // and would break icons from IconUtility::getSpriteIcon() if we remove it yet.
     \TYPO3\CMS\Backend\Sprite\SpriteManager::initialize();
     return $this;
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:15,代码来源:Bootstrap.php


注:本文中的TYPO3\CMS\Backend\Sprite\SpriteManager::initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。