5include_once(
"./Services/Table/classes/class.ilTableGUI.php");
87 $this->main_menu =
$DIC[
"ilMainMenu"];
88 $this->help =
$DIC[
"ilHelp"];
89 $this->
error = $DIC[
"ilErr"];
90 $this->db =
$DIC->database();
97 $ilMainMenu =
$DIC[
"ilMainMenu"];
100 $this->lng->loadLanguageModule(
'administration');
107 $ilMainMenu->setActive(
"administration");
109 $this->creation_mode =
false;
111 $this->ctrl->saveParameter($this, array(
"ref_id",
"admin_mode"));
113 if (
$_GET[
"admin_mode"] !=
"repository") {
114 $_GET[
"admin_mode"] =
"settings";
118 $this->ctrl->setReturn($this,
"");
123 $this->cur_ref_id =
$_GET[
"ref_id"];
127 if (
$_GET[
"cmd"] !=
"getDropDown") {
146 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
147 if (!
$rbacsystem->checkAccess(
"visible", SYSTEM_FOLDER_ID) &&
148 !
$rbacsystem->checkAccess(
"read", SYSTEM_FOLDER_ID)) {
149 $ilErr->raiseError($this->lng->txt(
'permission_denied'),
$ilErr->WARNING);
154 $new_type =
$_POST[
"new_type"]
157 if ($new_type !=
"") {
158 $this->creation_mode =
true;
162 if ($this->creation_mode) {
163 $obj_type = $new_type;
164 $class_name = $this->objDefinition->getClassName($obj_type);
165 $next_class = strtolower(
"ilObj" . $class_name .
"GUI");
166 $this->ctrl->setCmdClass($next_class);
170 elseif ($this->ctrl->getCmdClass() ==
"ilobjlanguageextgui") {
171 $next_class =
"ilobjlanguageextgui";
173 $next_class = $this->ctrl->getNextClass($this);
177 $next_class ==
"iladministrationgui" || $next_class ==
""
178 ) && ($this->ctrl->getCmd() ==
"return")) {
181 $class_name = $this->objDefinition->getClassName($obj_type);
182 $next_class = strtolower(
"ilObj" . $class_name .
"GUI");
183 $this->ctrl->setCmdClass($next_class);
184 $this->ctrl->setCmd(
"view");
187 $cmd = $this->ctrl->getCmd(
"forward");
190 switch ($next_class) {
194 if ($next_class !=
"" && $next_class !=
"iladministrationgui") {
196 include_once(
"./Services/Database/classes/class.ilDBUpdate.php");
198 if (!$dbupdate->getDBVersionStatus()) {
200 } elseif ($dbupdate->hotfixAvailable()) {
204 $class_path = $this->ctrl->lookupClassPath($next_class);
206 include_once($class_path);
207 $class_name = $this->ctrl->getClassForClasspath($class_path);
208 if (($next_class ==
"ilobjrolegui" || $next_class ==
"ilobjusergui"
209 || $next_class ==
"ilobjroletemplategui")) {
210 if (
$_GET[
"obj_id"] !=
"") {
211 $this->gui_obj =
new $class_name(
"",
$_GET[
"obj_id"],
false,
false);
212 $this->gui_obj->setCreationMode(
false);
214 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
215 $this->gui_obj->setCreationMode(
true);
219 $this->gui_obj =
new $class_name($this->cur_ref_id);
221 if (!$this->creation_mode) {
222 if (is_subclass_of($class_name,
"ilObject2GUI")) {
225 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
228 if (is_subclass_of($class_name,
"ilObject2GUI")) {
231 $this->gui_obj =
new $class_name(
"", 0,
true,
false);
235 $this->gui_obj->setCreationMode($this->creation_mode);
237 $tabs_out = ($new_type ==
"")
249 $this->ctrl->setReturn($this,
"return");
250 $ret = $this->ctrl->forwardCommand($this->gui_obj);
251 $html = $this->gui_obj->getHTML();
254 $this->tpl->setVariable(
"OBJECTS",
$html);
258 $cmd = $this->ctrl->getCmd(
"forward");
272 if (
$_GET[
"admin_mode"] !=
"repository") {
275 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
277 $this->ctrl->setParameterByClass(
278 "ilobjuserfoldergui",
280 (
int)
$_GET[
"jmpToUser"]
282 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"jumpToUser");
284 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"view");
287 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
288 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
292 $url_parts = parse_url(base64_decode(rawurldecode(
$_GET[
'fr'])));
293 if ($url_parts[
'http'] || $url_parts[
'host']) {
294 $ilErr->raiseError($this->lng->txt(
'permission_denied'),
$ilErr->MESSAGE);
297 $fs_gui->setMainFrameSource(
298 base64_decode(rawurldecode(
$_GET[
'fr']))
302 $fs_gui->setMainFrameSource(
303 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view")
305 $this->ctrl->redirectByClass(
"ilobjsystemfoldergui",
"view");
309 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
310 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
311 $this->ctrl->redirectByClass(
"ilobjrootfoldergui",
"view");
324 if (
$_GET[
"admin_mode"] !=
"repository") {
328 include_once(
"./Services/Administration/classes/class.ilAdministrationExplorerGUI.php");
330 if (!$exp->handleCommand()) {
331 $tpl->setLeftNavContent($exp->getHTML());
342 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"ctype",
$_GET[
"ctype"]);
343 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"cname",
$_GET[
"cname"]);
344 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"slot_id",
$_GET[
"slot_id"]);
346 if (
$_GET[
"plugin_id"]) {
347 $ilCtrl->setParameter($this,
"plugin_id",
$_GET[
"plugin_id"]);
348 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"showPlugin");
350 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"listPlugins");
363 $objects =
$tree->getChilds(SYSTEM_FOLDER_ID);
365 foreach ($objects as $object) {
366 $new_objects[$object[
"title"] .
":" . $object[
"child"]]
369 if ($object[
"type"] ==
"orgu") {
370 $new_objects[$object[
"title"] .
":" . $object[
"child"]][
"title"] =
$lng->txt(
"objs_orgu");
376 $new_objects[
$lng->txt(
"repository_admin") .
":" . ROOT_FOLDER_ID] =
379 "child" => ROOT_FOLDER_ID,
380 "ref_id" => ROOT_FOLDER_ID,
383 "title" =>
$lng->txt(
"repository_admin"),
384 "description" =>
$lng->txt(
"repository_admin_desc"),
385 "desc" =>
$lng->txt(
"repository_admin_desc"),
388 $new_objects[
$lng->txt(
"general_settings") .
":" . SYSTEM_FOLDER_ID] =
391 "child" => SYSTEM_FOLDER_ID,
392 "ref_id" => SYSTEM_FOLDER_ID,
395 "title" =>
$lng->txt(
"general_settings"),
401 foreach ($new_objects as $c) {
403 if (
$tree->getParentId($c[
"ref_id"]) == ROOT_FOLDER_ID && $c[
"type"] !=
"adm" &&
404 $_GET[
"admin_mode"] !=
"repository") {
409 if ($c[
"type"] ==
"" || $c[
"type"] ==
"objf" ||
410 $c[
"type"] ==
"xxx") {
413 $accessible =
$rbacsystem->checkAccess(
'visible,read', $c[
"ref_id"]);
417 if ($c[
"ref_id"] == ROOT_FOLDER_ID &&
418 !
$rbacsystem->checkAccess(
'write', $c[
"ref_id"])) {
421 if ($c[
"type"] ==
"rolf" && $c[
"ref_id"] != ROLE_FOLDER_ID) {
428 foreach ($items as
$i) {
429 $titems[
$i[
"type"]] =
$i;
436 array(
"adm",
"stys",
"adve",
"lngf",
"hlps",
"accs",
"cmps",
"extt",
"wfe"),
437 "user_administration" =>
438 array(
"usrf",
'tos',
"rolf",
"orgu",
"auth",
"ps"),
439 "learning_outcomes" =>
440 array(
"skmg",
"bdga",
"cert",
"trac")
444 array(
"pdts",
"prfa",
"nwss",
"awra",
"cadm",
"cals",
"mail"),
445 "content_services" =>
446 array(
"seas",
"mds",
"tags",
"taxs",
'ecss',
"ltis",
"otpl",
"pdfg"),
448 array(
'logs',
'sysc',
"recf",
"root")
452 array(
"reps",
"crss",
"grps",
"prgs"),
454 array(
"bibs",
"blga",
"chta",
"excs",
"facs",
"frma",
455 "lrss",
"mcts",
"mobs",
"svyf",
"assf",
"wbrs",
"wiks")
461 for (
$i = 1;
$i <= 3;
$i++) {
462 $groups[
$i] = array();
463 foreach (
$layout[
$i] as $group => $entries) {
464 $groups[
$i][$group] = array();
465 $entries_since_last_sep =
false;
466 foreach ($entries as $e) {
467 if ($e ==
"---" || $titems[$e][
"type"] !=
"") {
468 if ($e ==
"---" && $entries_since_last_sep) {
469 $groups[
$i][$group][] = $e;
470 $entries_since_last_sep =
false;
471 } elseif ($e !=
"---") {
472 $groups[
$i][$group][] = $e;
473 $entries_since_last_sep =
true;
480 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
482 $gl->setAsDropDown(
true);
484 for (
$i = 1;
$i <= 3;
$i++) {
488 foreach ($groups[
$i] as $group => $entries) {
489 if (count($entries) > 0) {
490 $gl->addGroupHeader(
$lng->txt(
"adm_" . $group));
492 foreach ($entries as $e) {
497 $icon = (
$path !=
"")
501 if (
$_GET[
"admin_mode"] ==
"settings" && $titems[$e][
"ref_id"] == ROOT_FOLDER_ID) {
503 $icon . $titems[$e][
"title"],
504 "ilias.php?baseClass=ilAdministrationGUI&ref_id=" .
505 $titems[$e][
"ref_id"] .
"&admin_mode=repository",
517 $icon . $titems[$e][
"title"],
518 "ilias.php?baseClass=ilAdministrationGUI&ref_id=" .
519 $titems[$e][
"ref_id"] .
"&cmd=jump",
523 "mm_adm_" . $titems[$e][
"type"],
548 $ref_id = (int)
$_GET[
"ref_id"];
552 $class = strtolower(
"ilObj" . $class_name .
"GUI");
553 $ilCtrl->setParameterByClass($class,
"ref_id", $ref_id);
554 $ilCtrl->redirectByClass($class,
"view");
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
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 _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)
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.