5include_once(
"./Services/Table/classes/class.ilTableGUI.php");
67 $this->lng->loadLanguageModule(
'administration');
72 $this->objDefinition = $objDefinition;
75 $ilMainMenu->setActive(
"administration");
77 $this->creation_mode =
false;
79 $this->ctrl->saveParameter($this, array(
"ref_id",
"admin_mode"));
81 if (
$_GET[
"admin_mode"] !=
"repository")
83 $_GET[
"admin_mode"] =
"settings";
87 $this->ctrl->setReturn($this,
"");
92 $this->cur_ref_id =
$_GET[
"ref_id"];
98 if (
$_GET[
"cmd"] !=
"getDropDown")
114 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
117 $ilias->raiseError($this->lng->txt(
'permission_denied'),
$ilias->error_obj->WARNING);
122 $new_type =
$_POST[
"new_type"]
127 $this->creation_mode =
true;
131 if ($this->creation_mode)
133 $obj_type = $new_type;
134 $class_name = $this->objDefinition->getClassName($obj_type);
135 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
136 $this->ctrl->setCmdClass($next_class);
140 elseif ($this->ctrl->getCmdClass() ==
"ilobjlanguageextgui")
142 $next_class =
"ilobjlanguageextgui";
146 $next_class = $this->ctrl->getNextClass($this);
150 if (($next_class ==
"iladministrationgui" || $next_class ==
""
151 ) && ($this->ctrl->getCmd() ==
"return"))
155 $class_name = $this->objDefinition->getClassName($obj_type);
156 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
157 $this->ctrl->setCmdClass($next_class);
158 $this->ctrl->setCmd(
"view");
161 $cmd = $this->ctrl->getCmd(
"forward");
169 if ($next_class !=
"" && $next_class !=
"iladministrationgui")
172 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
174 if (!$dbupdate->getDBVersionStatus())
178 else if ($dbupdate->hotfixAvailable())
183 $class_path = $this->ctrl->lookupClassPath($next_class);
185 include_once($class_path);
186 $class_name = $this->ctrl->getClassForClasspath($class_path);
187 if (($next_class ==
"ilobjrolegui" || $next_class ==
"ilobjusergui"
188 || $next_class ==
"ilobjroletemplategui"))
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 (!$this->creation_mode)
211 if(is_subclass_of($class_name,
"ilObject2GUI"))
217 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
222 if(is_subclass_of($class_name,
"ilObject2GUI"))
228 $this->gui_obj =
new $class_name(
"", 0,
true,
false);
232 $this->gui_obj->setCreationMode($this->creation_mode);
234 $tabs_out = ($new_type ==
"")
246 $this->ctrl->setReturn($this,
"return");
247 $ret = $this->ctrl->forwardCommand($this->gui_obj);
248 $html = $this->gui_obj->getHTML();
252 $this->tpl->setVariable(
"OBJECTS",
$html);
258 $cmd = $this->ctrl->getCmd(
"forward");
272 if (
$_GET[
"admin_mode"] !=
"repository")
277 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
280 $this->ctrl->setParameterByClass(
"ilobjuserfoldergui",
"jmpToUser",
281 (
int)
$_GET[
"jmpToUser"]);
282 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"jumpToUser");
286 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"view");
291 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
292 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
297 $url_parts = parse_url(base64_decode(rawurldecode(
$_GET[
'fr'])));
298 if($url_parts[
'http'] || $url_parts[
'host'])
302 $ilias->raiseError($this->lng->txt(
'permission_denied'),
$ilias->error_obj->MESSAGE);
305 $fs_gui->setMainFrameSource(
306 base64_decode(rawurldecode(
$_GET[
'fr'])));
311 $fs_gui->setMainFrameSource(
312 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view"));
313 $this->ctrl->redirectByClass(
"ilobjsystemfoldergui",
"view");
319 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
320 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
321 $this->ctrl->redirectByClass(
"ilobjrootfoldergui",
"view");
332 if (
$_GET[
"admin_mode"] !=
"repository")
337 include_once(
"./Services/Administration/classes/class.ilAdministrationExplorerGUI.php");
339 if (!$exp->handleCommand())
341 $tpl->setLeftNavContent($exp->getHTML());
352 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"ctype",
$_GET[
"ctype"]);
353 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"cname",
$_GET[
"cname"]);
354 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"slot_id",
$_GET[
"slot_id"]);
356 if(
$_GET[
"plugin_id"])
358 $ilCtrl->setParameter($this,
"plugin_id",
$_GET[
"plugin_id"]);
359 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"showPlugin");
363 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"listPlugins");
374 $objects =
$tree->getChilds(SYSTEM_FOLDER_ID);
376 foreach($objects as $object)
378 $new_objects[$object[
"title"].
":".$object[
"child"]]
381 if($object[
"type"] ==
"orgu")
382 $new_objects[$object[
"title"].
":".$object[
"child"]][
"title"] =
$lng->txt(
"objs_orgu");
387 $new_objects[
$lng->txt(
"repository_admin").
":".ROOT_FOLDER_ID] =
390 "child" => ROOT_FOLDER_ID,
391 "ref_id" => ROOT_FOLDER_ID,
394 "title" =>
$lng->txt(
"repository_admin"),
395 "description" =>
$lng->txt(
"repository_admin_desc"),
396 "desc" =>
$lng->txt(
"repository_admin_desc"),
399 $new_objects[
$lng->txt(
"general_settings").
":".SYSTEM_FOLDER_ID] =
402 "child" => SYSTEM_FOLDER_ID,
403 "ref_id" => SYSTEM_FOLDER_ID,
406 "title" =>
$lng->txt(
"general_settings"),
412 foreach ($new_objects as $c)
415 if (
$tree->getParentId($c[
"ref_id"]) == ROOT_FOLDER_ID && $c[
"type"] !=
"adm" &&
416 $_GET[
"admin_mode"] !=
"repository")
422 if ($c[
"type"] ==
"" || $c[
"type"] ==
"objf" ||
427 $accessible =
$rbacsystem->checkAccess(
'visible,read', $c[
"ref_id"]);
432 if ($c[
"ref_id"] == ROOT_FOLDER_ID &&
437 if ($c[
"type"] ==
"rolf" && $c[
"ref_id"] != ROLE_FOLDER_ID)
445 foreach ($items as $i)
447 $titems[$i[
"type"]] = $i;
454 array(
"adm",
"stys",
"adve",
"lngf",
"hlps",
"accs",
"cmps",
"extt"),
455 "user_administration" =>
456 array(
"usrf",
'tos',
"rolf",
"auth",
"ps",
"orgu"),
457 "learning_outcomes" =>
458 array(
"skmg",
"bdga",
"cert",
"trac")
462 array(
"pdts",
"prfa",
"nwss",
"awra",
"cadm",
"cals",
"mail"),
463 "content_services" =>
464 array(
"seas",
"mds",
"tags",
"taxs",
'ecss',
"otpl"),
466 array(
'sysc',
"recf",
'logs',
"root",
"wfe")
470 array(
"reps",
"crss",
"grps",
"prgs"),
472 array(
"bibs",
"blga",
"chta",
"excs",
"facs",
"frma",
473 "lrss",
"mcts",
"mobs",
"svyf",
"assf",
"wbrs",
"wiks")
479 for ($i = 1; $i <= 3; $i++)
481 $groups[$i] = array();
482 foreach (
$layout[$i] as $group => $entries)
484 $groups[$i][$group] = array();
485 $entries_since_last_sep =
false;
486 foreach ($entries as $e)
488 if ($e ==
"---" || $titems[$e][
"type"] !=
"")
490 if ($e ==
"---" && $entries_since_last_sep)
492 $groups[$i][$group][] = $e;
493 $entries_since_last_sep =
false;
495 else if ($e !=
"---")
497 $groups[$i][$group][] = $e;
498 $entries_since_last_sep =
true;
505 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
507 $gl->setAsDropDown(
true);
509 for ($i = 1; $i <= 3; $i++)
515 foreach ($groups[$i] as $group => $entries)
517 if (count($entries) > 0)
519 $gl->addGroupHeader(
$lng->txt(
"adm_".$group));
521 foreach ($entries as $e)
530 $icon = (
$path !=
"")
534 if (
$_GET[
"admin_mode"] ==
"settings" && $titems[$e][
"ref_id"] == ROOT_FOLDER_ID)
536 $gl->addEntry($icon.$titems[$e][
"title"],
537 "ilias.php?baseClass=ilAdministrationGUI&ref_id=".
538 $titems[$e][
"ref_id"].
"&admin_mode=repository",
539 "_top",
"",
"",
"mm_adm_rep",
541 "bottom center",
"top center",
false);
545 $gl->addEntry($icon.$titems[$e][
"title"],
546 "ilias.php?baseClass=ilAdministrationGUI&ref_id=".
547 $titems[$e][
"ref_id"].
"&cmd=jump",
548 "_top",
"",
"",
"mm_adm_".$titems[$e][
"type"],
550 "bottom center",
"top center",
false);
567 global
$ilCtrl, $objDefinition;
572 $class_name = $objDefinition->getClassName($obj_type);
573 $class = strtolower(
"ilObj".$class_name.
"GUI");
575 $ilCtrl->redirectByClass($class,
"view");
An exception for terminatinating execution or to throw for unit testing.
const USER_FOLDER_ID
Class ilObjUserFolder.
Administration explorer GUI class.
Class ilAdministratioGUI.
jumpToPluginSlot()
Special jump to plugin slot after ilCtrl has been reloaded.
executeCommand()
execute command
forward()
Forward to class/command.
getDropDown()
Get drop down.
__construct()
Constructor @access public.
showTree()
display tree view
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
static _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)