Ejemplo n.º 1
0
 /**
  * code for output generation of function "const.treeview"
  *
  * @throws LFException raised if no language data was found in the selected language
  * @param array language array
  * @param string current explode Token
  * @return string generated html content
  */
 private function outputFuncConstTreeview($langData, $curToken)
 {
     // get vars
     $usedLangData = $langData[$this->MOD_SETTINGS['langList']];
     $refLangData = $langData[$this->MOD_SETTINGS['patternList']];
     $treeHide = $this->extConfig['treeHide'];
     // checks
     if (!is_array($usedLangData) || !count($usedLangData)) {
         throw new LFException('failure.select.emptyLanguage', 1);
     }
     // get output
     $tree = tx_lfeditor_mod1_functions::genTreeInfoArray($usedLangData, $refLangData, $curToken);
     $content = tx_lfeditor_mod1_template::outputTreeView($tree, $treeHide);
     return $content;
 }