ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
4 include_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 ?>
getNodeTarget($a_node)
Get target for node.
setSkipRootNode($a_val)
Set skip root node.
getNodeToggleOnClick($a_node)
Get onclick attribute for node toggling.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id=0)
Constructor.
Bookmark block explorer GUI class.
Bookmark explorer GUI class.
setTypeWhiteList($a_val)
Set type white list.
global $ilCtrl
Definition: ilias.php:18
isNodeHighlighted($a_node)
Is node highlighted?
$ilUser
Definition: imgupload.php:18
getNodeOnClick($a_node)
Get onclick for node.
Create styles array
The data for the language used.
setOrderField($a_val, $a_numeric=false)
Set order field.