/** * Erzeugt Das Selectfeld mit der Baumstruktur. * * @param tx_mklib_treelib_TreeView $oTreeView * @return string */ public function renderTreeView(&$oTreeView, &$oTtce = null) { $oConfig = $oTreeView->getConfig(); $iMaxItems = $oConfig->getMaxItems(); $content = $this->getBrowsableTree($oTreeView); $divStyle = $oConfig->getTreeWrapStyle(); $content = '<div name="' . $this->PA['itemFormElName'] . '_selTree" id="' . $oTreeView->treeName . '-tree-div" style="' . htmlspecialchars($divStyle) . '">' . $content . '</div>'; $sSelectedListStyle = $oConfig->getSelectedListStyle(); $sSelectedListStyle = $sSelectedListStyle ? ' style="' . $sSelectedListStyle . '"' : ''; $params = array('size' => $oConfig->getSize(), 'autoSizeMax' => $oConfig->getAutoSizeMax(), 'style' => $sSelectedListStyle, 'dontShowMoveIcons' => $iMaxItems <= 1, 'maxitems' => $iMaxItems, 'info' => '', 'headers' => array('selector' => $this->oTceForm->getLL('l_selected') . ':<br />', 'items' => $this->oTceForm->getLL('l_items') . ':<br />'), 'noBrowser' => true, 'thumbnails' => $content); $content = $this->oTceForm->dbFileIcons($this->PA['itemFormElName'], $oConfig->get('internal_type'), $oConfig->get('allowed'), $this->getItemArray($oTreeView), '', $params, $this->PA['onFocus']); // Wizards: $content = $this->renderWissards($oTreeView, $content); $content = $this->addJs($oTreeView, $content, $oTtce); return $content; }