当前位置: 首页>>代码示例>>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;未经允许,请勿转载。