13 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
23 function __construct($a_target, $a_tax_tree, $a_gui_class =
"ilobjtaxonomygui",
24 $a_gui_cmd =
"listItems")
30 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
41 $this->gui_class = $a_gui_class;
42 $this->gui_cmd = $a_gui_cmd;
43 $this->tree = $a_tax_tree;
44 $this->root_id = $this->tree->readRootId();
52 $this->force_open_path = array();
64 $this->root_node_title = $a_val;
74 return $this->root_node_title;
82 $this->force_open_path = $a_path;
96 $ilCtrl->setParameterByClass($this->gui_class,
"tax_node",
97 $this->tree->readRootId());
99 $tpl->setCurrentBlock(
"icon");
101 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"tax_node"));
102 $tpl->parseCurrentBlock();
104 $tpl->setCurrentBlock(
"link");
106 if ($this->highlighted == $this->tree->readRootId())
108 $tpl->setVariable(
"A_CLASS",
"class='il_HighlightedNode'");
110 $tpl->setVariable(
"LINK_TARGET",
111 $ilCtrl->getLinkTargetByClass($this->gui_class, $this->gui_cmd));
112 $tpl->parseCurrentBlock();
114 $tpl->touchBlock(
"element");
115 $ilCtrl->setParameterByClass($this->gui_class,
"tax_node",
166 $ilCtrl->setParameterByClass($this->gui_class,
"tax_node", $a_node_id);
167 $ret = $ilCtrl->getLinkTargetByClass($this->gui_class, $this->gui_cmd);
168 $ilCtrl->setParameterByClass($this->gui_class,
"tax_node",
$_GET[
"tax_node"]);
187 if (in_array($a_obj_id, $this->force_open_path))
205 function getImage($a_name, $a_type =
"", $a_obj_id =
"")