/** * 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(); }