4 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
34 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id = 0)
38 $this->
user = $DIC->user();
39 $this->lng = $DIC->language();
40 $this->ctrl = $DIC->ctrl();
43 if ($a_user_id == 0) {
46 include_once(
"./Services/Bookmarks/classes/class.ilBookmarkTree.php");
48 parent::__construct(
"bm_exp", $a_parent_obj, $a_parent_cmd,
$tree);
68 return $lng->txt(
"bookmarks");
71 return $a_node[
"title"];
97 return $lng->txt(
"icon") .
" " .
$lng->txt($a_node[
"type"]);
109 if ($a_node[
"child"] ==
$_GET[
"bmf_id"] ||
126 switch ($a_node[
"type"]) {
131 $ilCtrl->setParameterByClass(
"ilbookmarkadministrationgui",
"bmf_id", $a_node[
"child"]);
133 $ret =
$ilCtrl->getLinkTargetByClass(
"ilbookmarkadministrationgui",
"");
134 if (isset(
$_GET[
'bm_link'])) {
135 $this->ctrl->setParameterByClass(
136 "ilbookmarkadministrationgui",
140 if (isset(
$_GET[
'bm_title'])) {
141 $this->ctrl->setParameterByClass(
142 "ilbookmarkadministrationgui",
147 $ret =
$ilCtrl->getLinkTargetByClass(
"ilbookmarkadministrationgui",
"newFormBookmark");
150 $ilCtrl->setParameterByClass(
"ilbookmarkadministrationgui",
"bmf_id",
$_GET[
"bmf_id"]);
getNodeHref($a_node)
Get href for node.
getNodeIcon($a_node)
Get node icon.
setSkipRootNode($a_val)
Set skip root node.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id=0)
Constructor.
Bookmark explorer GUI class.
setTypeWhiteList($a_val)
Set type white list.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
getNodeId($a_node)
Get id for node.
getNodeContent($a_node)
Get node content.
getRootNode()
Get root node.
isNodeHighlighted($a_node)
Is node highlighted?
Explorer class that works on tree objects (Services/Tree)
setOrderField($a_val, $a_numeric=false)
Set order field.
getNodeIconAlt($a_node)
Get node icon alt attribute.