ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilBookmarkBlockExplorerGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Bookmarks/classes/class.ilBookmarkExplorerGUI.php");
5
17{
21 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id = 0)
22 {
23 global $ilUser;
24
25 parent::__construct($a_parent_obj, $a_parent_cmd, $a_user_id);
26
27 $this->setTypeWhiteList(array("bmf", "dum", "bm"));
28 $this->setOrderField("type DESC, title");
29 $this->setSkipRootNode(true);
30 }
31
38 function isNodeHighlighted($a_node)
39 {
40 return false;
41 }
42
49 function getNodeHref($a_node)
50 {
51 global $ilCtrl;
52
53 switch($a_node["type"])
54 {
55 // bookmark folder
56 case "bmf":
57 return "#";
58 break;
59
60 // bookmark
61 case "bm":
62 return $a_node["target"];
63 break;
64 }
65 }
66
73 function getNodeTarget($a_node)
74 {
75 if ($a_node["type"] == "bm")
76 {
77 return "_blank";
78 }
79 return "";
80 }
81
88 function getNodeOnClick($a_node)
89 {
90 if ($a_node["type"] == "bmf")
91 {
92 return $this->getNodeToggleOnClick($a_node);
93 }
94 return "";
95 }
96}
97
98?>
Bookmark block explorer GUI class.
isNodeHighlighted($a_node)
Is node highlighted?
getNodeOnClick($a_node)
Get onclick for node.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id=0)
Constructor.
getNodeTarget($a_node)
Get target for node.
Bookmark explorer GUI class.
getNodeToggleOnClick($a_node)
Get onclick attribute for node toggling.
setSkipRootNode($a_val)
Set skip root node.
setTypeWhiteList($a_val)
Set type white list.
setOrderField($a_val, $a_numeric=false)
Set order field.
global $ilCtrl
Definition: ilias.php:18
global $ilUser
Definition: imgupload.php:15