getElement(); $elementId = $element->getId(); $treeOptions = $element->getTreeViewOptions(); /** @var $doc Qs_Doc */ $doc = Zend_Registry::get('doc'); $doc->addScript('js/jquery.treeview.js'); $doc->addStylesheet('css/thirdpart/jquery.treeview.css'); $doc->addInitFunction('$("' . $this->getDomContainerSelector() . '").treeview', array($treeOptions)); $doc->addStylesheet('css/modules/form-element-checkboxTree.css'); $doc->addScript('js/lib/form-element-checkboxTree.js'); $params = array( 'elementId' => $elementId, 'linksClass' => 'links', // @see Qs_View_Helper_FormCheckboxTree->_renderLinks() ); $doc->addInitObject('ElementCheckboxTree', array($params)); return $this; } public function render($content) { return $content; } public function setDomContainerSelector($domContainerSelector) { $this->_domContainerSelector = $domContainerSelector; return $this; } public function getDomContainerSelector() { if (null === $this->_domContainerSelector) { $this->_domContainerSelector = '#' . htmlspecialchars($this->getElement()->getId() . '-tree'); } return $this->_domContainerSelector; } }