48 if (!array_key_exists($pageId, $this->typoScriptSetupCache)) {
52 $template->tt_track = 0;
54 $template->setProcessExtensionStatics(TRUE);
62 $rootline = $sysPage->getRootLine($pageId,
'', TRUE);
65 $template->runThroughTemplates($rootline, 0);
66 $template->generateConfig();
67 $this->typoScriptSetupCache[$pageId] = $template->setup;
69 return $this->typoScriptSetupCache[$pageId];
82 $pluginConfiguration = array();
83 if (is_array($setup[
'module.'][
'tx_' . strtolower(
$extensionName) .
'.'])) {
84 $pluginConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($setup[
'module.'][
'tx_' . strtolower(
$extensionName) .
'.']);
88 if (is_array($setup[
'module.'][
'tx_' . $pluginSignature .
'.'])) {
89 $overruleConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($setup[
'module.'][
'tx_' . $pluginSignature .
'.']);
93 return $pluginConfiguration;
109 if (!is_array($switchableControllerActions)) {
110 $switchableControllerActions = array();
112 return $switchableControllerActions;
122 if ($this->currentPageId !== NULL) {
128 $this->currentPageId = $this->currentPageId ?: self::DEFAULT_BACKEND_STORAGE_PID;
148 $rootPage =
$GLOBALS[
'TYPO3_DB']->exec_SELECTgetSingleRow(
149 'uid',
'pages',
'deleted=0 AND hidden=0 AND is_siteroot=1',
'',
'sorting' 151 if (empty($rootPage)) {
155 return (
int)$rootPage[
'uid'];
164 $rootTemplate =
$GLOBALS[
'TYPO3_DB']->exec_SELECTgetSingleRow(
165 'pid',
'sys_template',
'deleted=0 AND hidden=0 AND root=1',
'',
'crdate' 167 if (empty($rootTemplate)) {
171 return (
int)$rootTemplate[
'pid'];
192 if (!isset($frameworkConfiguration[
'mvc'][
'requestHandlers'])) {
193 $frameworkConfiguration[
'mvc'][
'requestHandlers'] = array(
194 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\FrontendRequestHandler' =>
'TYPO3\\CMS\\Extbase\\Mvc\\Web\\FrontendRequestHandler',
195 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\BackendRequestHandler' =>
'TYPO3\\CMS\\Extbase\\Mvc\\Web\\BackendRequestHandler' 198 return $frameworkConfiguration;
210 if ($recursionDepth <= 0) {
214 $recursiveStoragePids =
'';
216 foreach ($storagePids as $startPid) {
217 $pids = $this->queryGenerator->getTreeList($startPid, $recursionDepth, 0, 1);
218 if (strlen($pids) > 0) {
219 $recursiveStoragePids .= $pids .
',';
223 return rtrim($recursiveStoragePids,
',');
static mergeRecursiveWithOverrule(array &$original, array $overrule, $addKeys=TRUE, $includeEmptyValues=TRUE, $enableUnsetFeature=TRUE)
getContextSpecificFrameworkConfiguration(array $frameworkConfiguration)
getCurrentPageIdFromCurrentSiteRoot()
getCurrentPageIdFromGetPostData()
getDefaultBackendStoragePid()
getRecursiveStoragePids($storagePid, $recursionDepth=0)
static intExplode($delimiter, $string, $removeEmptyValues=FALSE, $limit=0)
static makeInstance($className)
getCurrentPageIdFromRootTemplate()
getSwitchableControllerActions($extensionName, $pluginName)
getPluginConfiguration($extensionName, $pluginName=NULL)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]