Example #1
0
 /**
  * Will create and return the HTML code for a browsable tree of folders.
  * Is based on the mounts found in the internal array ->MOUNTS (set in the constructor)
  *
  * @return string HTML code for the browsable tree
  */
 public function getBrowsableTree()
 {
     // TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController does not set custom parameters on an Ajax expand/collapse request
     if (!$GLOBALS['SOBE']->browser->editorNo) {
         $scopeData = (string) GeneralUtility::_GP('scopeData');
         $scopeHash = (string) GeneralUtility::_GP('scopeHash');
         if (!empty($scopeData) && GeneralUtility::hmac($scopeData) === $scopeHash) {
             $scopeData = unserialize($scopeData);
             if ($scopeData['browser']['editorNo']) {
                 $GLOBALS['SOBE']->browser->editorNo = $scopeData['browser']['editorNo'];
             }
             if ($scopeData['browser']['sys_language_content']) {
                 $GLOBALS['SOBE']->browser->sys_language_content = $scopeData['browser']['sys_language_content'];
             }
             if ($scopeData['browser']['contentTypo3Language']) {
                 $GLOBALS['SOBE']->browser->contentTypo3Language = $scopeData['browser']['contentTypo3Language'];
             }
         }
     }
     return parent::getBrowsableTree();
 }