function view() { if ($this->id > 0 && !$this->tree->isInTree($this->id)) { $this->ctrl->setParameter($this, 'bmf_id', ''); $this->ctrl->redirect($this); } $objects = ilBookmarkFolder::getObjects($this->id); include_once 'Services/Bookmarks/classes/class.ilBookmarkAdministrationTableGUI.php'; $table = new ilBookmarkAdministrationTableGUI($this); $table->setId('bookmark_adm_table'); $table->setData($objects); $this->tpl->setVariable("ADM_CONTENT", $table->getHTML()); }
function view() { global $ilToolbar; if ($this->id > 0 && !$this->tree->isInTree($this->id)) { $this->ctrl->setParameter($this, 'bmf_id', ''); $this->ctrl->redirect($this); } $ilToolbar->addButton($this->lng->txt("bookmark_new"), $this->ctrl->getLinkTarget($this, "newFormBookmark")); $ilToolbar->addButton($this->lng->txt("bookmark_folder_new"), $this->ctrl->getLinkTarget($this, "newFormBookmarkFolder")); $objects = ilBookmarkFolder::getObjects($this->id); include_once 'Services/Bookmarks/classes/class.ilBookmarkAdministrationTableGUI.php'; $table = new ilBookmarkAdministrationTableGUI($this); $table->setId('bookmark_adm_table'); $table->setData($objects); $this->tpl->setVariable("ADM_CONTENT", $table->getHTML()); }