/** * Get root node * * @param * @return */ function getRootNode() { if ($this->top_node_id > 0) { return $this->getTree()->getNodeData($this->top_node_id); } else { return parent::getRootNode(); } }
/** * Get root node * * @param * @return */ function getRootNode() { if ($this->templates) { $path = $this->getTree()->getPathId($_GET["obj_id"]); return $this->getTree()->getNodeData($path[1]); } return parent::getRootNode(); }