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


PHP ExtensionManager::loadExtTables方法代码示例

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


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

示例1: loadExtTablesRequiresCacheFileIfExistsAndCachingIsAllowed

 /**
  * @test
  */
 public function loadExtTablesRequiresCacheFileIfExistsAndCachingIsAllowed()
 {
     $mockCache = $this->getMock('TYPO3\\CMS\\Core\\Cache\\Frontend\\AbstractFrontend', array('getIdentifier', 'set', 'get', 'getByTag', 'has', 'remove', 'flush', 'flushByTag', 'requireOnce'), array(), '', FALSE);
     $GLOBALS['typo3CacheManager'] = $this->getMock('TYPO3\\CMS\\Core\\Cache\\CacheManager', array('getCache'));
     $GLOBALS['typo3CacheManager']->expects($this->any())->method('getCache')->will($this->returnValue($mockCache));
     $mockCache->expects($this->any())->method('has')->will($this->returnValue(TRUE));
     $mockCache->expects($this->once())->method('requireOnce');
     // Reset the internal cache access tracking variable of extMgm
     // This method is only in the ProxyClass!
     \TYPO3\CMS\Core\Extension\ExtensionManagerAccessibleProxy::resetExtTablesWasReadFromCacheOnceBoolean();
     \TYPO3\CMS\Core\Extension\ExtensionManager::loadExtTables(TRUE);
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:15,代码来源:ExtensionManagerTest.php

示例2: loadExtensionTables

 /**
  * Load ext_tables and friends.
  *
  * This will mainly set up $TCA and several other global arrays
  * through API's like extMgm.
  * Executes ext_tables.php files of loaded extensions or the
  * according cache file if exists.
  *
  * Note: For backwards compatibility some global variables are
  * explicitly set as global to be used without $GLOBALS[] in
  * ext_tables.php. It is discouraged to access variables like
  * $TBE_MODULES directly in ext_tables.php, but we can not prohibit
  * this without heavily breaking backwards compatibility.
  *
  * @TODO : We could write a scheduler / reports module or an update checker
  * @TODO : It should be defined, which global arrays are ok to be manipulated
  * @param boolean $allowCaching True, if reading compiled ext_tables file from cache is allowed
  * @return \TYPO3\CMS\Core\Core\Bootstrap
  */
 public function loadExtensionTables($allowCaching = TRUE)
 {
     // It is discouraged to use those global variables directly, but we
     // can not prohibit this without breaking backwards compatibility
     global $T3_SERVICES, $T3_VAR, $TYPO3_CONF_VARS;
     global $TBE_MODULES, $TBE_MODULES_EXT, $TCA;
     global $PAGES_TYPES, $TBE_STYLES, $FILEICONS;
     global $_EXTKEY;
     // Include standard tables.php file
     require PATH_t3lib . 'stddb/tables.php';
     \TYPO3\CMS\Core\Extension\ExtensionManager::loadExtTables($allowCaching);
     // Load additional ext tables script if registered
     if (TYPO3_extTableDef_script) {
         include PATH_typo3conf . TYPO3_extTableDef_script;
     }
     // Run post hook for additional manipulation
     $this->runExtTablesPostProcessingHooks();
     return $this;
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:38,代码来源:Bootstrap.php


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