5 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
37 $this->ctrl = $DIC->ctrl();
38 include_once(
"./Services/Taxonomy/classes/class.ilTaxonomyTree.php");
43 $this->
id =
"tax_expl_" . $this->tax_tree->getTreeId();
45 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
52 $this->target_gui = $a_target_gui;
53 $this->target_cmd = $a_target_cmd;
55 parent::__construct($this->
id, $a_parent_obj, $a_parent_cmd, $this->tax_tree);
68 if ($rn[
"child"] == $a_node[
"child"]) {
71 return $a_node[
"title"];
85 if (!$this->onclick) {
86 $ilCtrl->setParameterByClass($this->target_gui,
"tax_node", $a_node[
"child"]);
87 $href =
$ilCtrl->getLinkTargetByClass($this->target_gui, $this->target_cmd);
88 $ilCtrl->setParameterByClass($this->target_gui,
"tax_node",
$_GET[
"tax_node"]);
114 if ((!$this->onclick && $a_node[
"child"] ==
$_GET[
"tax_node"]) ||
115 ($this->onclick && is_array($this->selected_nodes) && in_array($a_node[
"child"], $this->selected_nodes))) {
123 $this->onclick = $a_value;
128 if ($this->onclick) {
129 return str_replace(
"{NODE_CHILD}", $a_node[
"child"], $this->onclick);
132 return parent::getNodeOnClick($a_node);
getNodeIcon($a_node)
Get node icon.
getNodeHref($a_node)
Get node href.
Taxonomy explorer GUI class.
static _lookupTitle($a_id)
lookup object title
isNodeHighlighted($a_node)
setPreloadChilds($a_val)
Set preload childs.
static lookupSortingMode($a_id)
Lookup sorting mode.
__construct( $a_parent_obj, $a_parent_cmd, $a_tax_id, $a_target_gui, $a_target_cmd, $a_id="")
Constructor.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getNodeContent($a_node)
Get content of node.
getRootNode()
Get root node.
Explorer class that works on tree objects (Services/Tree)
setOrderField($a_val, $a_numeric=false)
Set order field.