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


PHP ActionController::__construct方法代碼示例

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


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

示例1: CacheUtility

 /**
  * ViewController constructor.
  */
 function __construct()
 {
     parent::__construct();
     $this->cacheUtility = new CacheUtility('bwrk_resources_slider');
     $this->pid = $GLOBALS['TSFE']->id;
     $this->cacheIdentifier = $this->getCacheIdentifier();
 }
開發者ID:bergwerk,項目名稱:bwrk_resources_slider,代碼行數:10,代碼來源:ViewController.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $GLOBALS['LANG']->includeLLFile('EXT:viewpage/Resources/Private/Language/locallang.xlf');
     $this->pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
     $this->pageRenderer->addInlineSettingArray('web_view', array('States' => $GLOBALS['BE_USER']->uc['moduleData']['web_view']['States']));
     $this->pageRenderer->addInlineLanguageLabelFile('EXT:viewpage/Resources/Private/Language/locallang.xlf');
 }
開發者ID:KarlDennisMatthaei1923,項目名稱:PierraaDesign,代碼行數:8,代碼來源:ViewModuleController.php

示例3: __construct

 /**
  * CacheUtility constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->_extKey = GeneralUtility::camelCaseToLowerCaseUnderscored($this->extensionName);
     $this->_request = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Mvc\\Request');
     $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->_configurationManager = $objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');
 }
開發者ID:bergwerk,項目名稱:bwrk_onepage,代碼行數:11,代碼來源:CacheUtility.php

示例4: __construct

 /**
  * Constructor for all plugin controllers
  *
  * @param Tx_PtExtbase_Lifecycle_Manager $lifeCycleManager
  */
 public function __construct(Tx_PtExtbase_Lifecycle_Manager $lifeCycleManager)
 {
     $this->lifecycleManager = $lifeCycleManager;
     if (TYPO3_MODE == 'FE' && !$GLOBALS['TSFE']->beUserLogin) {
         $this->errorMethodName = 'productionErrorAction';
     }
     parent::__construct();
 }
開發者ID:beyond-agentur,項目名稱:pt_extbase,代碼行數:13,代碼來源:AbstractActionController.php

示例5: __construct

 /**
  * @param LanguageService $languageService Language Service to inject
  */
 public function __construct(LanguageService $languageService = null)
 {
     parent::__construct();
     $this->languageService = $languageService ?: $GLOBALS['LANG'];
 }
開發者ID:rickymathew,項目名稱:TYPO3.CMS,代碼行數:8,代碼來源:ModulesController.php

示例6: __construct

 /**
  * ModuleController constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->backendUser = self::getBackendUserAuthentication();
 }
開發者ID:vertexvaar,項目名稱:election,代碼行數:8,代碼來源:AbstractBeController.php


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