/** * get tree bookmark list for personal desktop */ function getPDBookmarkListHTMLTree() { global $ilCtrl, $ilUser; include_once "./Services/Bookmarks/classes/class.ilBookmarkExplorer.php"; $showdetails = $this->getCurrentDetailLevel() > 2; $exp = new ilBookmarkExplorer($ilCtrl->getLinkTargetByClass("ilpersonaldesktopgui", "show"), $_SESSION["AccountId"]); $exp->setAllowedTypes(array('dum', 'bmf', 'bm')); $exp->setEnableSmallMode(true); $exp->setTargetGet("bmf_id"); $exp->setSessionExpandVariable('mexpand'); $ilCtrl->setParameter($this, "bmf_id", $this->id); $exp->setExpandTarget($ilCtrl->getLinkTargetByClass("ilpersonaldesktopgui", "show")); if ($_GET["mexpand"] == "") { $expanded = $this->id; } else { $expanded = $_GET["mexpand"]; } $exp->setExpand($expanded); $exp->setShowDetails($showdetails); // build html-output $exp->setOutput(0); return $exp->getOutput(); }
function move() { global $ilUser, $ilTabs; $bm_ids = $_REQUEST['bm_id']; if (!$bm_ids) { ilUtil::sendFailure($this->lng->txt("no_checkbox")); return $this->view(); } $ilTabs->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this)); $this->ctrl->setParameter($this, "bm_id_tgt", implode(";", $bm_ids)); $exp = new ilBookmarkExplorer($this->ctrl->getLinkTarget($this, "confirmedMove"), $ilUser->getId()); $exp->setAllowedTypes(array('bmf')); $exp->setTargetGet("bmfmv_id"); $exp->forceExpandAll(true, false); $exp->addRoot($this->lng->txt("bookmarks")); $exp->setOutput(0); ilUtil::sendInfo($this->lng->txt("bookmark_select_target")); $this->tpl->setContent($exp->getOutput()); // do not display navigation tree $this->mode = "flat"; }