5 include_once(
"./Services/Table/classes/class.ilTableGUI.php");
88 $this->main_menu = $DIC[
"ilMainMenu"];
89 $this->help = $DIC[
"ilHelp"];
90 $this->error = $DIC[
"ilErr"];
91 $this->db = $DIC->database();
92 $lng = $DIC->language();
94 $tree = $DIC->repositoryTree();
98 $ilMainMenu = $DIC[
"ilMainMenu"];
101 $this->lng->loadLanguageModule(
'administration');
108 $ilMainMenu->setActive(
"administration");
110 $this->creation_mode =
false;
112 $this->ctrl->saveParameter($this, array(
"ref_id",
"admin_mode"));
114 if (
$_GET[
"admin_mode"] !=
"repository") {
115 $_GET[
"admin_mode"] =
"settings";
119 $this->ctrl->setReturn($this,
"");
124 $this->cur_ref_id =
$_GET[
"ref_id"];
128 if (
$_GET[
"cmd"] !=
"getDropDown") {
147 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
148 if (!
$rbacsystem->checkAccess(
"visible", SYSTEM_FOLDER_ID) &&
149 !
$rbacsystem->checkAccess(
"read", SYSTEM_FOLDER_ID)) {
150 $ilErr->raiseError($this->lng->txt(
'permission_denied'),
$ilErr->WARNING);
155 $new_type =
$_POST[
"new_type"]
158 if ($new_type !=
"") {
159 $this->creation_mode =
true;
163 if ($this->creation_mode) {
164 $obj_type = $new_type;
165 $class_name = $this->objDefinition->getClassName($obj_type);
166 $next_class = strtolower(
"ilObj" . $class_name .
"GUI");
167 $this->ctrl->setCmdClass($next_class);
171 elseif ($this->ctrl->getCmdClass() ==
"ilobjlanguageextgui") {
172 $next_class =
"ilobjlanguageextgui";
174 $next_class = $this->ctrl->getNextClass($this);
178 $next_class ==
"iladministrationgui" || $next_class ==
"" 179 ) && ($this->ctrl->getCmd() ==
"return")) {
182 $class_name = $this->objDefinition->getClassName($obj_type);
183 $next_class = strtolower(
"ilObj" . $class_name .
"GUI");
184 $this->ctrl->setCmdClass($next_class);
185 $this->ctrl->setCmd(
"view");
188 $cmd = $this->ctrl->getCmd(
"forward");
191 switch ($next_class) {
195 if ($next_class !=
"" && $next_class !=
"iladministrationgui") {
197 include_once(
"./Services/Database/classes/class.ilDBUpdate.php");
199 if (!$dbupdate->getDBVersionStatus()) {
201 } elseif ($dbupdate->hotfixAvailable()) {
205 $class_path = $this->ctrl->lookupClassPath($next_class);
207 include_once($class_path);
208 $class_name = $this->ctrl->getClassForClasspath($class_path);
209 if (($next_class ==
"ilobjrolegui" || $next_class ==
"ilobjusergui" 210 || $next_class ==
"ilobjroletemplategui")) {
211 if (
$_GET[
"obj_id"] !=
"") {
212 $this->gui_obj =
new $class_name(
"",
$_GET[
"obj_id"],
false,
false);
213 $this->gui_obj->setCreationMode(
false);
215 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
216 $this->gui_obj->setCreationMode(
true);
220 $this->gui_obj =
new $class_name($this->cur_ref_id);
222 if (!$this->creation_mode) {
223 if (is_subclass_of($class_name,
"ilObject2GUI")) {
226 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
229 if (is_subclass_of($class_name,
"ilObject2GUI")) {
232 $this->gui_obj =
new $class_name(
"", 0,
true,
false);
236 $this->gui_obj->setCreationMode($this->creation_mode);
238 $tabs_out = ($new_type ==
"")
250 $this->ctrl->setReturn($this,
"return");
251 $ret = $this->ctrl->forwardCommand($this->gui_obj);
252 $html = $this->gui_obj->getHTML();
255 $this->tpl->setVariable(
"OBJECTS",
$html);
259 $cmd = $this->ctrl->getCmd(
"forward");
273 if (
$_GET[
"admin_mode"] !=
"repository") {
276 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
278 $this->ctrl->setParameterByClass(
279 "ilobjuserfoldergui",
281 (
int) $_GET[
"jmpToUser"]
283 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"jumpToUser");
285 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"view");
288 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
289 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
293 $url_parts = parse_url(base64_decode(rawurldecode(
$_GET[
'fr'])));
294 if ($url_parts[
'http'] || $url_parts[
'host']) {
295 $ilErr->raiseError($this->lng->txt(
'permission_denied'),
$ilErr->MESSAGE);
298 $fs_gui->setMainFrameSource(
299 base64_decode(rawurldecode(
$_GET[
'fr']))
303 $fs_gui->setMainFrameSource(
304 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view")
306 $this->ctrl->redirectByClass(
"ilobjsystemfoldergui",
"view");
310 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
311 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
312 $this->ctrl->redirectByClass(
"ilobjrootfoldergui",
"view");
325 if (
$_GET[
"admin_mode"] !=
"repository") {
329 include_once(
"./Services/Administration/classes/class.ilAdministrationExplorerGUI.php");
331 if (!$exp->handleCommand()) {
332 $tpl->setLeftNavContent($exp->getHTML());
343 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"ctype",
$_GET[
"ctype"]);
344 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"cname",
$_GET[
"cname"]);
345 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"slot_id",
$_GET[
"slot_id"]);
347 if (
$_GET[
"plugin_id"]) {
348 $ilCtrl->setParameter($this,
"plugin_id",
$_GET[
"plugin_id"]);
349 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"showPlugin");
351 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"listPlugins");
364 $objects =
$tree->getChilds(SYSTEM_FOLDER_ID);
366 foreach ($objects as $object) {
367 $new_objects[$object[
"title"] .
":" . $object[
"child"]]
370 if ($object[
"type"] ==
"orgu") {
371 $new_objects[$object[
"title"] .
":" . $object[
"child"]][
"title"] =
$lng->txt(
"objs_orgu");
377 $new_objects[
$lng->txt(
"repository_admin") .
":" . ROOT_FOLDER_ID] =
380 "child" => ROOT_FOLDER_ID,
381 "ref_id" => ROOT_FOLDER_ID,
384 "title" =>
$lng->txt(
"repository_admin"),
385 "description" =>
$lng->txt(
"repository_admin_desc"),
386 "desc" =>
$lng->txt(
"repository_admin_desc"),
389 $new_objects[
$lng->txt(
"general_settings") .
":" . SYSTEM_FOLDER_ID] =
392 "child" => SYSTEM_FOLDER_ID,
393 "ref_id" => SYSTEM_FOLDER_ID,
396 "title" =>
$lng->txt(
"general_settings"),
402 foreach ($new_objects as
$c) {
404 if (
$tree->getParentId($c[
"ref_id"]) == ROOT_FOLDER_ID && $c[
"type"] !=
"adm" &&
405 $_GET[
"admin_mode"] !=
"repository") {
410 if ($c[
"type"] ==
"" || $c[
"type"] ==
"objf" ||
411 $c[
"type"] ==
"xxx") {
414 $accessible =
$rbacsystem->checkAccess(
'visible,read', $c[
"ref_id"]);
418 if ($c[
"ref_id"] == ROOT_FOLDER_ID &&
419 !
$rbacsystem->checkAccess(
'write', $c[
"ref_id"])) {
422 if ($c[
"type"] ==
"rolf" && $c[
"ref_id"] != ROLE_FOLDER_ID) {
429 foreach ($items as
$i) {
430 $titems[$i[
"type"]] =
$i;
437 array(
"adm",
"mme",
"stys",
"adve",
"lngf",
"hlps",
"accs",
"cmps",
"extt",
"wfe"),
438 "user_administration" =>
439 array(
"usrf",
'tos',
"rolf",
"orgu",
"auth",
"ps"),
440 "learning_outcomes" =>
441 array(
"skmg",
"bdga",
"cert",
"trac")
445 array(
"pdts",
"prfa",
"nwss",
"awra",
"cadm",
"cals",
"mail"),
446 "content_services" =>
447 array(
"seas",
"mds",
"tags",
"taxs",
'ecss',
"ltis",
"otpl",
"pdfg"),
449 array(
'logs',
'sysc',
"recf",
"root")
453 array(
"reps",
"crss",
"grps",
"prgs"),
455 array(
"bibs",
"blga",
"chta",
"excs",
"facs",
"frma",
456 "lrss",
"mcts",
"mobs",
"svyf",
"assf",
"wbrs",
"wiks",
463 for ($i = 1; $i <= 3; $i++) {
464 $groups[
$i] = array();
465 foreach ($layout[$i] as $group => $entries) {
466 $groups[
$i][$group] = array();
467 $entries_since_last_sep =
false;
468 foreach ($entries as $e) {
469 if ($e ==
"---" || $titems[$e][
"type"] !=
"") {
470 if ($e ==
"---" && $entries_since_last_sep) {
471 $groups[
$i][$group][] = $e;
472 $entries_since_last_sep =
false;
473 } elseif ($e !=
"---") {
474 $groups[
$i][$group][] = $e;
475 $entries_since_last_sep =
true;
482 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
484 $gl->setAsDropDown(
true);
486 for ($i = 1; $i <= 3; $i++) {
490 foreach ($groups[$i] as $group => $entries) {
491 if (count($entries) > 0) {
492 $gl->addGroupHeader(
$lng->txt(
"adm_" . $group));
494 foreach ($entries as $e) {
498 $path = ilObject::_getIcon(
"",
"tiny", $titems[$e][
"type"]);
499 $icon = (
$path !=
"")
503 if (
$_GET[
"admin_mode"] ==
"settings" && $titems[$e][
"ref_id"] == ROOT_FOLDER_ID) {
505 $icon . $titems[$e][
"title"],
506 "ilias.php?baseClass=ilAdministrationGUI&ref_id=" .
507 $titems[$e][
"ref_id"] .
"&admin_mode=repository",
519 $icon . $titems[$e][
"title"],
520 "ilias.php?baseClass=ilAdministrationGUI&ref_id=" .
521 $titems[$e][
"ref_id"] .
"&cmd=jump",
525 "mm_adm_" . $titems[$e][
"type"],
550 $ref_id = (int)
$_GET[
"ref_id"];
554 $class = strtolower(
"ilObj" . $class_name .
"GUI");
555 $ilCtrl->setParameterByClass($class,
"ref_id", $ref_id);
556 $ilCtrl->redirectByClass($class,
"view");
Class ilAdministratioGUI.
jumpToPluginSlot()
Special jump to plugin slot after ilCtrl has been reloaded.
getDropDown()
Get drop down.
executeCommand()
execute command
forward()
Forward to class/command.
static _lookupObjId($a_id)
showTree()
display tree view
Administration explorer GUI class.
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
__construct()
Constructor public.
const USER_FOLDER_ID
Class ilObjUserFolder.
static redirect($a_script)