12 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
37 parent::__construct($a_target);
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();
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;
136 return parent::getImage($a_name);
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")
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)
buildLinkTarget($a_node_id, $a_type)
build link target
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
__construct($a_target)
Constructor public.
formatHeader(&$tpl, $a_obj_id, $a_option)
overwritten method from base class public
modifyChilds($a_parent_id, $a_objects)
modify children of parent ()
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
showChilds($a_parent_id, $a_obj_id)
isVisible($a_ref_id, $a_type)
Create styles array
The data for the language used.
Class ilExplorer class for explorer view in admin frame.
forceExpanded($a_obj_id)
force expansion of node
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
getImage($a_name, $a_type="", $a_obj_id="")
get image path
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
get frame target (may be overwritten by derived classes)
isClickable($a_type, $a_ref_id)
setTitle($a_val)
Set title.