本文整理匯總了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();
}