12 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
39 $this->root_id = $this->tree->readRootId();
40 $this->order_column =
"title";
42 $this->
setTitle($lng->txt(
"overview"));
56 if (
$_GET[
"admin_mode"] ==
"settings")
61 $tpl->setCurrentBlock(
"icon");
63 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"repository"));
64 $tpl->parseCurrentBlock();
66 $class_name = $objDefinition->getClassName(
"root");
67 $class = strtolower(
"ilObj".$class_name.
"GUI");
68 $this->ctrl->setParameterByClass($class,
"ref_id", ROOT_FOLDER_ID);
69 $link = $this->ctrl->getLinkTargetByClass($class,
"view");
71 $tpl->setCurrentBlock(
"link");
72 $tpl->setVariable(
"TITLE", $lng->txt(
"repository"));
73 $tpl->setVariable(
"LINK_TARGET", $link);
74 $tpl->setVariable(
"TARGET",
" target=\"content\"");
75 $tpl->parseCurrentBlock();
77 $tpl->setCurrentBlock(
"element");
78 $tpl->parseCurrentBlock();
89 if ($a_type ==
"" || $a_type ==
"xxx")
93 if (
$_GET[
"admin_mode"] ==
"settings" && $a_node_id == ROOT_FOLDER_ID)
95 $this->ctrl->setParameterByClass(
"iladministrationgui",
"ref_id", ROOT_FOLDER_ID);
96 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
97 $link = $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset");
98 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
102 $class_name = $objDefinition->getClassName($a_type);
103 $class = strtolower(
"ilObj".$class_name.
"GUI");
104 $this->ctrl->setParameterByClass($class,
"ref_id", $a_node_id);
105 $link = $this->ctrl->getLinkTargetByClass($class,
"view");
115 if (
$_GET[
"admin_mode"] ==
"settings" && $a_child == ROOT_FOLDER_ID)
121 return $this->frame_target;
129 function getImage($a_name, $a_type =
"", $a_obj_id =
"")
143 return $rbacsystem->checkAccess(
'read',$a_ref_id);
150 if ($this->tree->getParentId($a_ref_id) == ROOT_FOLDER_ID && $a_type !=
"adm" &&
151 $_GET[
"admin_mode"] !=
"repository")
158 if ($a_type ==
"" || $a_type ==
"xxx")
163 $ilBench->start(
"Explorer",
"setOutput_isVisible");
164 $visible = $rbacsystem->checkAccess(
'visible',$a_ref_id);
165 if ($a_type ==
"rolf" && $a_ref_id != ROLE_FOLDER_ID)
170 $ilBench->stop(
"Explorer",
"setOutput_isVisible");
179 global
$lng,$rbacsystem;
181 if ($a_parent_id == SYSTEM_FOLDER_ID)
183 $new_objects = array();
184 foreach($a_objects as $object)
186 $new_objects[$object[
"title"].
":".$object[
"child"]]
192 if($rbacsystem->checkAccess(
'write',SYSTEM_FOLDER_ID))
194 $new_objects[$lng->txt(
"repository_admin").
":".ROOT_FOLDER_ID] =
197 "child" => ROOT_FOLDER_ID,
198 "ref_id" => ROOT_FOLDER_ID,
201 "title" => $lng->txt(
"repository_admin"),
202 "description" => $lng->txt(
"repository_admin_desc"),
203 "desc" => $lng->txt(
"repository_admin_desc"),
219 if ($a_parent_id == ROOT_FOLDER_ID)
221 if ($this->rootfolder_shown ==
true)
225 $this->rootfolder_shown =
true;
236 if ($a_obj_id == SYSTEM_FOLDER_ID)