當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ExtensionManagementUtility::loadExtTables方法代碼示例

本文整理匯總了PHP中TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtTables方法的典型用法代碼示例。如果您正苦於以下問題:PHP ExtensionManagementUtility::loadExtTables方法的具體用法?PHP ExtensionManagementUtility::loadExtTables怎麽用?PHP ExtensionManagementUtility::loadExtTables使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TYPO3\CMS\Core\Utility\ExtensionManagementUtility的用法示例。


在下文中一共展示了ExtensionManagementUtility::loadExtTables方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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.
  *
  * @param bool $allowCaching True, if reading compiled ext_tables file from cache is allowed
  * @return Bootstrap
  * @internal This is not a public API method, do not use in own extensions
  */
 public function loadExtensionTables($allowCaching = true)
 {
     ExtensionManagementUtility::loadBaseTca($allowCaching);
     ExtensionManagementUtility::loadExtTables($allowCaching);
     $this->runExtTablesPostProcessingHooks();
     return $this;
 }
開發者ID:TYPO3Incubator,項目名稱:TYPO3.CMS,代碼行數:19,代碼來源:Bootstrap.php

示例2: loadExtTablesRequiresCacheFileIfExistsAndCachingIsAllowed

 /**
  * @test
  */
 public function loadExtTablesRequiresCacheFileIfExistsAndCachingIsAllowed()
 {
     $mockCache = $this->getMock(AbstractFrontend::class, array('getIdentifier', 'set', 'get', 'getByTag', 'has', 'remove', 'flush', 'flushByTag', 'requireOnce'), array(), '', FALSE);
     /** @var CacheManager|\PHPUnit_Framework_MockObject_MockObject $mockCacheManager */
     $mockCacheManager = $this->getMock(CacheManager::class, array('getCache'));
     $mockCacheManager->expects($this->any())->method('getCache')->will($this->returnValue($mockCache));
     ExtensionManagementUtilityAccessibleProxy::setCacheManager($mockCacheManager);
     $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!
     ExtensionManagementUtilityAccessibleProxy::resetExtTablesWasReadFromCacheOnceBoolean();
     ExtensionManagementUtility::loadExtTables(TRUE);
 }
開發者ID:plan2net,項目名稱:TYPO3.CMS,代碼行數:17,代碼來源:ExtensionManagementUtilityTest.php

示例3: 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.
  *
  * @param boolean $allowCaching True, if reading compiled ext_tables file from cache is allowed
  * @return Bootstrap
  * @internal This is not a public API method, do not use in own extensions
  */
 public function loadExtensionTables($allowCaching = TRUE)
 {
     Utility\ExtensionManagementUtility::loadBaseTca($allowCaching);
     Utility\ExtensionManagementUtility::loadExtTables($allowCaching);
     $this->executeExtTablesAdditionalFile();
     $this->runExtTablesPostProcessingHooks();
     return $this;
 }
開發者ID:samuweiss,項目名稱:TYPO3-Site,代碼行數:20,代碼來源:Bootstrap.php

示例4: 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
  * @internal This is not a public API method, do not use in own extensions
  */
 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\Utility\ExtensionManagementUtility::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:nicksergio,項目名稱:TYPO3v4-Core,代碼行數:39,代碼來源:Bootstrap.php

示例5: 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\Utility\ExtensionManagementUtilityAccessibleProxy::resetExtTablesWasReadFromCacheOnceBoolean();
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtTables(TRUE);
 }
開發者ID:nicksergio,項目名稱:TYPO3v4-Core,代碼行數:15,代碼來源:ExtensionMangementUtilityTest.php


注:本文中的TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtTables方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。