83 protected function init() {
85 $this->backPath =
$GLOBALS[
'BACK_PATH'];
98 if (!empty($this->scopeData)) {
100 $this->foldertree->thisScript = $this->scopeData[
'script'];
101 $this->foldertree->ext_noTempRecyclerDirs = $this->scopeData[
'ext_noTempRecyclerDirs'];
102 $GLOBALS[
'SOBE']->browser = new \stdClass();
103 $GLOBALS[
'SOBE']->browser->mode = $this->scopeData[
'browser'][
'mode'];
104 $GLOBALS[
'SOBE']->browser->act = $this->scopeData[
'browser'][
'act'];
107 $this->foldertree->thisScript =
'alt_file_navframe.php';
110 $this->foldertree->ext_IconMode =
$GLOBALS[
'BE_USER']->getTSConfigVal(
'options.folderTree.disableIconLinkToContextmenu');
121 $this->doHighlight = !
$GLOBALS[
'BE_USER']->getTSConfigVal(
'options.pageTree.disableTitleHighlight');
124 $this->doc->backPath =
$GLOBALS[
'BACK_PATH'];
125 $this->doc->setModuleTemplate(
'EXT:backend/Resources/Private/Templates/alt_file_navframe.html');
126 $this->doc->showFlashMessages = FALSE;
128 $this->doc->getDragDropCode(
'folders');
129 $this->doc->getContextMenuCode();
131 $this->doc->JScode .= $this->doc->wrapScriptTags(($this->currentSubScript ?
'top.currentSubScript=unescape("' . rawurlencode($this->currentSubScript) .
'");' :
'') .
' 133 // setting prefs for foldertree 134 Tree.ajaxID = "SC_alt_file_navframe::expandCollapse"; 136 // Function, loading the list frame from navigation tree: 137 function jumpTo(id, linkObj, highlightID, bank) { 138 var theUrl = top.TS.PATH_typo3 + top.currentSubScript ; 139 if (theUrl.indexOf("?") != -1) { 140 theUrl += "&id=" + id 142 theUrl += "?id=" + id 144 top.fsMod.currentBank = bank; 145 top.TYPO3.Backend.ContentContainer.setUrl(theUrl); 147 ' . ($this->doHighlight ?
'Tree.highlightActiveItem("file", highlightID + "_" + bank);' :
'') .
' 148 if (linkObj) { linkObj.blur(); } 151 ' . ($this->cMR ?
' jumpTo(top.fsMod.recentIds[\'file\'],\'\');' :
''));
161 $tree = $this->foldertree->getBrowsableTree();
163 $this->content .= $tree;
165 $this->content .= $this->doc->wrapScriptTags(
' 166 ' . ($this->doHighlight ?
'Tree.highlightActiveItem("", top.fsMod.navFrameHighlightedID["file"]);' :
'') .
' 167 Tree.registerDragDropHandlers();');
171 'IMG_RESET' =>
'<img' .
IconUtility::skinImg(
$GLOBALS[
'BACK_PATH'],
'gfx/close_gray.gif',
' width="16" height="16"') .
' id="treeFilterReset" alt="' .
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.resetFilter') .
'" ' .
'title="' .
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.resetFilter') .
'" />',
172 'CONTENT' => $this->content
176 $subparts[
'###SECOND_ROW###'] =
'';
178 $this->content = $this->doc->startPage(
'TYPO3 Folder Tree');
179 $this->content .= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers, $subparts);
180 $this->content .= $this->doc->endPage();
181 $this->content = $this->doc->insertStylesAndJS($this->content);
206 $buttons[
'csh'] = str_replace(
'typo3-csh-inline',
'typo3-csh-inline show-right', \
TYPO3\CMS\Backend\Utility\
BackendUtility::cshItem(
'xMOD_csh_corebe',
'filetree',
$GLOBALS[
'BACK_PATH']));
225 $tree = $this->foldertree->getBrowsableTree();
226 if ($this->foldertree->getAjaxStatus() === FALSE) {
229 $ajaxObj->addContent(
'tree', $tree);
static skinImg($backPath, $src, $wHattribs='', $outputMode=0)
static cshItem($table, $field, $BACK_PATH, $wrap='', $onlyIconMode=FALSE, $styleAttrib='')
static getIndpEnv($getEnvName)
static hmac($input, $additionalSecret='')
static makeInstance($className)
ajaxExpandCollapse($params, $ajaxObj)
static getSpriteIcon($iconName, array $options=array(), array $overlays=array())
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
if($ajaxRegistryEntry !==NULL) $ajaxObj