5 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
41 $this->gui_obj = $a_gui_obj;
45 $this->root_id = $this->tree->readRootId();
46 $this->order_column =
"title";
54 $this->selectable_types = $a_types;
59 $this->ref_id = $a_ref_id;
65 if(in_array($a_type,$this->selectable_types))
67 $this->ctrl->setParameter($this->gui_obj,
'link_ref_id',$a_node_id);
68 if (
$_GET[
"menu_entry"] > 0)
70 return $this->ctrl->getLinkTarget($this->gui_obj,
'editMenuEntry');
74 return $this->ctrl->getLinkTarget($this->gui_obj,
'addMenuEntry');
86 return in_array($a_type,$this->selectable_types) and $a_ref_id !=
$this->ref_id;
98 if ($rbacsystem->checkAccess(
"read", $a_ref_id))
120 $tpl =
new ilTemplate(
"tpl.tree.html",
true,
true,
"Services/UIComponent/Explorer");
122 $tpl->setCurrentBlock(
"text");
123 $tpl->setVariable(
"OBJ_TITLE", $lng->txt(
"repository"));
124 $tpl->parseCurrentBlock();
129 $this->output[] =
$tpl->get();