本文整理汇总了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();
}
示例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');
}
示例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');
}
示例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();
}
示例5: __construct
/**
* @param LanguageService $languageService Language Service to inject
*/
public function __construct(LanguageService $languageService = null)
{
parent::__construct();
$this->languageService = $languageService ?: $GLOBALS['LANG'];
}
示例6: __construct
/**
* ModuleController constructor.
*/
public function __construct()
{
parent::__construct();
$this->backendUser = self::getBackendUserAuthentication();
}