34 $GLOBALS[
'LANG']->includeLLFile(
'EXT:t3editor/locallang.xlf');
48 $ajaxIdParts = explode(
'::', $ajaxObj->getAjaxID(), 2);
49 $ajaxMethod = $ajaxIdParts[1];
52 if ($ajaxMethod ==
'loadTemplates') {
53 $ajaxObj->setContent($this->
loadTemplates((
int)\
TYPO3\CMS\Core\Utility\GeneralUtility::_GP(
'pageId')));
54 $ajaxObj->setContentFormat(
'jsonbody');
70 if (
$GLOBALS[
'BE_USER']->isAdmin()) {
73 $templates = $this->getMergedTemplates($pageId);
75 $this->ajaxObj->setError(
$GLOBALS[
'LANG']->getLL(
'pageIDInteger'));
78 $this->ajaxObj->setError(
$GLOBALS[
'LANG']->getLL(
'noPermission'));
91 protected function getMergedTemplates($pageId, $templateId = 0) {
95 $tsParser->tt_track = 0;
99 $rootLine = $page->getRootLine($pageId);
101 $tsParser->runThroughTemplates($rootLine);
104 array_pop($tsParser->config);
105 array_pop($tsParser->constants);
106 $tsParser->linkObjects = TRUE;
107 $tsParser->ext_regLinenumbers = FALSE;
108 $tsParser->bType = $bType;
109 $tsParser->resourceCheck = 1;
110 $tsParser->removeFromGetFilePath = PATH_site;
111 $tsParser->generateConfig();
124 $cleanedTreeBranch = array();
125 foreach ($treeBranch as $key => $value) {
126 $dotCount = substr_count($key,
'.');
128 if ($dotCount == 0) {
130 if (strlen($value) > 20) {
131 $value = substr($value, 0, 20);
133 if (!isset($cleanedTreeBranch[$key])) {
134 $cleanedTreeBranch[$key] = array();
136 $cleanedTreeBranch[$key][
'v'] = $value;
138 } elseif ($dotCount == 1) {
142 $key = str_replace(
'.',
'', $key);
143 if (!isset($cleanedTreeBranch[$key])) {
144 $cleanedTreeBranch[$key] = array();
146 $cleanedTreeBranch[$key][
'c'] = $subBranch;
150 return $cleanedTreeBranch;
processAjaxRequest($params, \TYPO3\CMS\Core\Http\AjaxRequestHandler &$ajaxObj)
loadTemplates($pageId, $templateId=0)
treeWalkCleanup(array $treeBranch)
static makeInstance($className)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]