5 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
39 $this->rbacsystem = $DIC->rbac()->system();
40 $this->lng = $DIC->language();
41 $tree = $DIC->repositoryTree();
46 $this->gui_obj = $a_gui_obj;
48 parent::__construct($a_target);
50 $this->root_id = $this->tree->readRootId();
51 $this->order_column =
"title";
59 $this->selectable_types = $a_types;
64 $this->ref_id = $a_ref_id;
70 if (in_array(
$a_type, $this->selectable_types)) {
71 $this->ctrl->setParameter($this->gui_obj,
'link_ref_id', $a_node_id);
72 if (
$_GET[
"menu_entry"] > 0) {
73 return $this->ctrl->getLinkTarget($this->gui_obj,
'editMenuEntry');
75 return $this->ctrl->getLinkTarget($this->gui_obj,
'addMenuEntry');
117 $tpl =
new ilTemplate(
"tpl.tree.html",
true,
true,
"Services/UIComponent/Explorer");
119 $tpl->setCurrentBlock(
"text");
120 $tpl->setVariable(
"OBJ_TITLE",
$lng->txt(
"repository"));
121 $tpl->parseCurrentBlock();
122 $this->output[] =
$tpl->get();
special template class to simplify handling of ITX/PEAR
Class ilExplorer class for explorer view in admin frame.
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
addFilter($a_item)
adds item to the filter public