5include_once(
"./Services/Table/classes/class.ilTableGUI.php");
66 $this->lng->loadLanguageModule(
'administration');
71 $this->objDefinition = $objDefinition;
74 $ilMainMenu->setActive(
"administration");
76 $this->creation_mode =
false;
78 $this->ctrl->saveParameter($this, array(
"ref_id",
"admin_mode"));
80 if (
$_GET[
"admin_mode"] !=
"repository")
82 $_GET[
"admin_mode"] =
"settings";
86 $this->ctrl->setReturn($this,
"");
91 $this->cur_ref_id =
$_GET[
"ref_id"];
97 if (
$_GET[
"cmd"] !=
"getDropDown")
113 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
116 $ilias->raiseError($this->lng->txt(
'permission_denied'),
$ilias->error_obj->WARNING);
121 $new_type =
$_POST[
"new_type"]
124 if ($new_type !=
"" && $this->ctrl->getCmd() ==
"create")
126 $this->creation_mode =
true;
130 if ($this->creation_mode)
132 $obj_type = $new_type;
133 $class_name = $this->objDefinition->getClassName($obj_type);
134 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
135 $this->ctrl->setCmdClass($next_class);
139 elseif ($this->ctrl->getCmdClass() ==
"ilobjlanguageextgui")
141 $next_class =
"ilobjlanguageextgui";
145 $next_class = $this->ctrl->getNextClass($this);
149 if (($next_class ==
"iladministrationgui" || $next_class ==
""
150 ) && ($this->ctrl->getCmd() ==
"return"))
154 $class_name = $this->objDefinition->getClassName($obj_type);
155 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
156 $this->ctrl->setCmdClass($next_class);
157 $this->ctrl->setCmd(
"view");
160 $cmd = $this->ctrl->getCmd(
"forward");
168 if ($next_class !=
"" && $next_class !=
"iladministrationgui")
171 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
173 if (!$dbupdate->getDBVersionStatus())
177 else if ($dbupdate->hotfixAvailable())
182 $class_path = $this->ctrl->lookupClassPath($next_class);
184 include_once($class_path);
185 $class_name = $this->ctrl->getClassForClasspath($class_path);
186 if (($next_class ==
"ilobjrolegui" || $next_class ==
"ilobjusergui"
187 || $next_class ==
"ilobjroletemplategui"
188 || $next_class ==
"ilobjstylesheetgui"))
190 if (
$_GET[
"obj_id"] !=
"")
192 $this->gui_obj =
new $class_name(
"",
$_GET[
"obj_id"],
false,
false);
193 $this->gui_obj->setCreationMode(
false);
197 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
198 $this->gui_obj->setCreationMode(
true);
205 $this->gui_obj =
new $class_name($this->cur_ref_id);
209 if(is_subclass_of($class_name,
"ilObject2GUI"))
215 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
218 $this->gui_obj->setCreationMode($this->creation_mode);
220 $tabs_out = ($new_type ==
"")
232 $this->ctrl->setReturn($this,
"return");
233 $ret = $this->ctrl->forwardCommand($this->gui_obj);
234 $html = $this->gui_obj->getHTML();
238 $this->tpl->setVariable(
"OBJECTS",
$html);
244 $cmd = $this->ctrl->getCmd(
"forward");
258 if (
$_GET[
"admin_mode"] !=
"repository")
263 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
266 $this->ctrl->setParameterByClass(
"ilobjuserfoldergui",
"jmpToUser",
267 (
int)
$_GET[
"jmpToUser"]);
268 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"jumpToUser");
272 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"view");
277 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
278 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
283 $url_parts = parse_url(base64_decode(rawurldecode(
$_GET[
'fr'])));
284 if($url_parts[
'http'] || $url_parts[
'host'])
288 $ilias->raiseError($this->lng->txt(
'permission_denied'),
$ilias->error_obj->MESSAGE);
291 $fs_gui->setMainFrameSource(
292 base64_decode(rawurldecode(
$_GET[
'fr'])));
297 $fs_gui->setMainFrameSource(
298 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view"));
299 $this->ctrl->redirectByClass(
"ilobjsystemfoldergui",
"view");
305 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
306 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
307 $this->ctrl->redirectByClass(
"ilobjrootfoldergui",
"view");
318 if (
$_GET[
"admin_mode"] !=
"repository")
323 include_once(
"./Services/Administration/classes/class.ilAdministrationExplorerGUI.php");
325 if (!$exp->handleCommand())
327 $tpl->setLeftNavContent($exp->getHTML());
338 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"ctype",
$_GET[
"ctype"]);
339 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"cname",
$_GET[
"cname"]);
340 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"slot_id",
$_GET[
"slot_id"]);
342 if(
$_GET[
"plugin_id"])
344 $ilCtrl->setParameter($this,
"plugin_id",
$_GET[
"plugin_id"]);
345 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"showPlugin");
349 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"listPlugins");
360 $objects =
$tree->getChilds(SYSTEM_FOLDER_ID);
362 foreach($objects as $object)
364 $new_objects[$object[
"title"].
":".$object[
"child"]]
367 if($object[
"type"] ==
"orgu")
368 $new_objects[$object[
"title"].
":".$object[
"child"]][
"title"] =
$lng->txt(
"objs_orgu");
373 $new_objects[
$lng->txt(
"repository_admin").
":".ROOT_FOLDER_ID] =
376 "child" => ROOT_FOLDER_ID,
377 "ref_id" => ROOT_FOLDER_ID,
380 "title" =>
$lng->txt(
"repository_admin"),
381 "description" =>
$lng->txt(
"repository_admin_desc"),
382 "desc" =>
$lng->txt(
"repository_admin_desc"),
385 $new_objects[
$lng->txt(
"general_settings").
":".SYSTEM_FOLDER_ID] =
388 "child" => SYSTEM_FOLDER_ID,
389 "ref_id" => SYSTEM_FOLDER_ID,
392 "title" =>
$lng->txt(
"general_settings"),
398 foreach ($new_objects as $c)
401 if (
$tree->getParentId($c[
"ref_id"]) == ROOT_FOLDER_ID && $c[
"type"] !=
"adm" &&
402 $_GET[
"admin_mode"] !=
"repository")
408 if ($c[
"type"] ==
"" || $c[
"type"] ==
"objf" ||
413 $accessible =
$rbacsystem->checkAccess(
'visible,read', $c[
"ref_id"]);
418 if ($c[
"ref_id"] == ROOT_FOLDER_ID &&
423 if ($c[
"type"] ==
"rolf" && $c[
"ref_id"] != ROLE_FOLDER_ID)
431 foreach ($items as $i)
433 $titems[$i[
"type"]] = $i;
440 array(
"adm",
"stys",
"adve",
"lngf",
"hlps",
"accs",
"cmps",
"extt"),
441 "user_administration" =>
442 array(
"usrf",
'tos',
"rolf",
"auth",
"ps",
"orgu"),
443 "learning_outcomes" =>
444 array(
"skmg",
"cert",
"trac")
448 array(
"pdts",
"prfa",
"nwss",
"awra",
"cadm",
"cals",
"mail"),
449 "content_services" =>
450 array(
"seas",
"mds",
"tags",
"taxs",
'ecss',
"pays",
"otpl"),
452 array(
'sysc',
"recf",
'logs',
"root")
456 array(
"reps",
"crss",
"grps",
"prgs"),
458 array(
"bibs",
"blga",
"chta",
"excs",
"facs",
"frma",
459 "lrss",
"mcts",
"mobs",
"svyf",
"assf",
"wbrs",
"wiks")
465 for ($i = 1; $i <= 3; $i++)
467 $groups[$i] = array();
468 foreach ($layout[$i] as $group => $entries)
470 $groups[$i][$group] = array();
471 $entries_since_last_sep =
false;
472 foreach ($entries as $e)
474 if ($e ==
"---" || $titems[$e][
"type"] !=
"")
476 if ($e ==
"---" && $entries_since_last_sep)
478 $groups[$i][$group][] = $e;
479 $entries_since_last_sep =
false;
481 else if ($e !=
"---")
483 $groups[$i][$group][] = $e;
484 $entries_since_last_sep =
true;
491 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
493 $gl->setAsDropDown(
true);
495 for ($i = 1; $i <= 3; $i++)
501 foreach ($groups[$i] as $group => $entries)
503 if (count($entries) > 0)
505 $gl->addGroupHeader(
$lng->txt(
"adm_".$group));
507 foreach ($entries as $e)
516 $icon = (
$path !=
"")
520 if (
$_GET[
"admin_mode"] ==
"settings" && $titems[$e][
"ref_id"] == ROOT_FOLDER_ID)
522 $gl->addEntry($icon.$titems[$e][
"title"],
523 "ilias.php?baseClass=ilAdministrationGUI&ref_id=".
524 $titems[$e][
"ref_id"].
"&admin_mode=repository",
525 "_top",
"",
"",
"mm_adm_rep",
527 "bottom center",
"top center",
false);
531 $gl->addEntry($icon.$titems[$e][
"title"],
532 "ilias.php?baseClass=ilAdministrationGUI&ref_id=".
533 $titems[$e][
"ref_id"].
"&cmd=jump",
534 "_top",
"",
"",
"mm_adm_".$titems[$e][
"type"],
536 "bottom center",
"top center",
false);
553 global
$ilCtrl, $objDefinition;
558 $class_name = $objDefinition->getClassName($obj_type);
559 $class = strtolower(
"ilObj".$class_name.
"GUI");
561 $ilCtrl->redirectByClass($class,
"view");
const USER_FOLDER_ID
Class ilObjUserFolder.
Administration explorer GUI class.
Class ilAdministratioGUI.
ilAdministrationGUI()
Constructor @access public.
jumpToPluginSlot()
Special jump to plugin slot after ilCtrl has been reloaded.
& executeCommand()
execute command
forward()
Forward to class/command.
getDropDown()
Get drop down.
showTree()
display tree view
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
_checkAdministrationPermission()
static _lookupObjId($a_id)
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static _lookupType($a_id, $a_reference=false)
lookup object type
static redirect($a_script)
http redirect to other script
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
redirection script todo: (a better solution should control the processing via a xml file)