12 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
50 $this->lng = $DIC->language();
51 $this->obj_definition = $DIC[
"objDefinition"];
52 $this->rbacsystem = $DIC->rbac()->system();
53 $tree = $DIC->repositoryTree();
55 $lng = $DIC->language();
59 parent::__construct($a_target);
61 $this->root_id = $this->tree->readRootId();
62 $this->order_column =
"title";
79 if (
$_GET[
"admin_mode"] ==
"settings") {
83 $tpl->setCurrentBlock(
"icon");
85 $tpl->setVariable(
"TXT_ALT_IMG",
$lng->txt(
"repository"));
86 $tpl->parseCurrentBlock();
88 $class_name = $objDefinition->getClassName(
"root");
89 $class = strtolower(
"ilObj" . $class_name .
"GUI");
90 $this->ctrl->setParameterByClass($class,
"ref_id", ROOT_FOLDER_ID);
91 $link = $this->ctrl->getLinkTargetByClass($class,
"view");
93 $tpl->setCurrentBlock(
"link");
94 $tpl->setVariable(
"TITLE",
$lng->txt(
"repository"));
95 $tpl->setVariable(
"LINK_TARGET", $link);
96 $tpl->setVariable(
"TARGET",
" target=\"content\"");
97 $tpl->parseCurrentBlock();
99 $tpl->setCurrentBlock(
"element");
100 $tpl->parseCurrentBlock();
114 if (
$_GET[
"admin_mode"] ==
"settings" && $a_node_id == ROOT_FOLDER_ID) {
115 $this->ctrl->setParameterByClass(
"iladministrationgui",
"ref_id", ROOT_FOLDER_ID);
116 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
117 $link = $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset");
118 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
120 $class_name = $objDefinition->getClassName(
$a_type);
121 $class = strtolower(
"ilObj" . $class_name .
"GUI");
122 $this->ctrl->setParameterByClass($class,
"ref_id", $a_node_id);
123 $link = $this->ctrl->getLinkTargetByClass($class,
"view");
133 if (
$_GET[
"admin_mode"] ==
"settings" && $a_child == ROOT_FOLDER_ID) {
136 return $this->frame_target;
150 return parent::getImage($a_name);
157 return $rbacsystem->checkAccess(
'read', $a_ref_id);
164 if ($this->tree->getParentId($a_ref_id) == ROOT_FOLDER_ID &&
$a_type !=
"adm" &&
165 $_GET[
"admin_mode"] !=
"repository") {
175 $visible =
$rbacsystem->checkAccess(
'visible', $a_ref_id);
176 if (
$a_type ==
"rolf" && $a_ref_id != ROLE_FOLDER_ID) {
191 if ($a_parent_id == SYSTEM_FOLDER_ID) {
192 $new_objects =
array();
193 foreach ($a_objects as $object) {
194 $new_objects[$object[
"title"] .
":" . $object[
"child"]]
200 if (
$rbacsystem->checkAccess(
'write', SYSTEM_FOLDER_ID)) {
201 $new_objects[
$lng->txt(
"repository_admin") .
":" . ROOT_FOLDER_ID] =
204 "child" => ROOT_FOLDER_ID,
205 "ref_id" => ROOT_FOLDER_ID,
208 "title" =>
$lng->txt(
"repository_admin"),
209 "description" =>
$lng->txt(
"repository_admin_desc"),
210 "desc" =>
$lng->txt(
"repository_admin_desc"),
226 if ($a_parent_id == ROOT_FOLDER_ID) {
227 if ($this->rootfolder_shown ==
true) {
230 $this->rootfolder_shown =
true;
241 if ($a_obj_id == SYSTEM_FOLDER_ID) {
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
buildLinkTarget($a_node_id, $a_type)
build link target
__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.