12 require_once(
"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 =
"")
134 if ($this->ilias->getSetting(
"custom_icons") &&
135 in_array($a_type, array(
"cat",
"grp",
"crs")))
137 require_once(
"./Services/Container/classes/class.ilContainer.php");
152 return $rbacsystem->checkAccess(
'read',$a_ref_id);
159 if ($this->tree->getParentId($a_ref_id) == ROOT_FOLDER_ID && $a_type !=
"adm" &&
160 $_GET[
"admin_mode"] !=
"repository")
167 if ($a_type ==
"" || $a_type ==
"xxx" || $a_type ==
'frma')
172 $ilBench->start(
"Explorer",
"setOutput_isVisible");
173 $visible = $rbacsystem->checkAccess(
'visible',$a_ref_id);
174 if ($a_type ==
"rolf" && $a_ref_id != ROLE_FOLDER_ID)
179 $ilBench->stop(
"Explorer",
"setOutput_isVisible");
188 global
$lng,$rbacsystem;
190 if ($a_parent_id == SYSTEM_FOLDER_ID)
192 $new_objects = array();
193 foreach($a_objects as $object)
195 $new_objects[$object[
"title"].
":".$object[
"child"]]
201 if($rbacsystem->checkAccess(
'write',SYSTEM_FOLDER_ID))
203 $new_objects[$lng->txt(
"repository_admin").
":".ROOT_FOLDER_ID] =
206 "child" => ROOT_FOLDER_ID,
207 "ref_id" => ROOT_FOLDER_ID,
210 "title" => $lng->txt(
"repository_admin"),
211 "description" => $lng->txt(
"repository_admin_desc"),
212 "desc" => $lng->txt(
"repository_admin_desc"),
228 if ($a_parent_id == ROOT_FOLDER_ID)
230 if ($this->rootfolder_shown ==
true)
234 $this->rootfolder_shown =
true;
245 if ($a_obj_id == SYSTEM_FOLDER_ID)