Class ilAdministratioGUI.
More...
Class ilAdministratioGUI.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
ilAdministrationGUI: ilObjGroupGUI, ilObjFolderGUI, ilObjFileGUI, ilObjCourseGUI, ilCourseObjectivesGUI ilAdministrationGUI: ilObjSAHSLearningModuleGUI, ilObjChatroomGUI, ilObjForumGUI ilAdministrationGUI: ilObjLearningModuleGUI, ilObjGlossaryGUI ilAdministrationGUI: ilObjQuestionPoolGUI, ilObjSurveyQuestionPoolGUI, ilObjTestGUI ilAdministrationGUI: ilObjSurveyGUI, ilObjExerciseGUI, ilObjMediaPoolGUI, ilObjFileBasedLMGUI ilAdministrationGUI: ilObjCategoryGUI, ilObjUserGUI, ilObjRoleGUI, ilObjUserFolderGUI ilAdministrationGUI: ilObjLinkResourceGUI ilAdministrationGUI: ilObjRoleTemplateGUI ilAdministrationGUI: ilObjRootFolderGUI, ilObjSessionGUI, ilObjPortfolioTemplateGUI ilAdministrationGUI: ilObjSystemFolderGUI, ilObjRoleFolderGUI, ilObjAuthSettingsGUI ilAdministrationGUI: ilObjChatServerGUI, ilObjLanguageFolderGUI, ilObjMailGUI ilAdministrationGUI: ilObjObjectFolderGUI, ilObjRecoveryFolderGUI ilAdministrationGUI: ilObjSearchSettingsGUI, ilObjStyleSettingsGUI ilAdministrationGUI: ilObjAssessmentFolderGUI, ilObjExternalToolsSettingsGUI, ilObjUserTrackingGUI ilAdministrationGUI: ilObjAdvancedEditingGUI, ilObjPrivacySecurityGUI, ilObjNewsSettingsGUI ilAdministrationGUI: ilObjPersonalDesktopSettingsGUI, ilObjMediaCastGUI ilAdministrationGUI: ilObjLanguageExtGUI, ilObjMDSettingsGUI, ilObjComponentSettingsGUI ilAdministrationGUI: ilObjCalendarSettingsGUI, ilObjSurveyAdministrationGUI ilAdministrationGUI: ilObjCategoryReferenceGUI, ilObjCourseReferenceGUI, ilObjRemoteCourseGUI, ilObjGroupReferenceGUI ilAdministrationGUI: ilObjForumAdministrationGUI, ilObjBlogGUI, ilObjPollGUI, ilObjDataCollectionGUI ilAdministrationGUI: ilObjRemoteCategoryGUI, ilObjRemoteWikiGUI, ilObjRemoteLearningModuleGUI ilAdministrationGUI: ilObjRemoteGlossaryGUI, ilObjRemoteFileGUI, ilObjRemoteGroupGUI, ilObjECSSettingsGUI ilAdministrationGUI: ilObjCloudGUI, ilObjRepositorySettingsGUI, ilObjWebResourceAdministrationGUI ilAdministrationGUI: ilObjCourseAdministrationGUI, ilObjGroupAdministrationGUI, ilObjExerciseAdministrationGUI ilAdministrationGUI: ilObjTaxonomyAdministrationGUI, ilObjLoggingSettingsGUI ilAdministrationGUI: ilObjBibliographicAdminGUI, ilObjBibliographicGUI ilAdministrationGUI: ilObjStudyProgrammeAdminGUI, ilObjStudyProgrammeGUI ilAdministrationGUI: ilObjBadgeAdministrationGUI, ilMemberExportSettingsGUI // BEGIN WebDAV ilAdministrationGUI: ilObjFileAccessSettingsGUI, ilPermissionGUI, ilObjRemoteTestGUI // END WebDAV
Definition at line 45 of file class.ilAdministrationGUI.php.
◆ __construct()
ilAdministrationGUI::__construct |
( |
| ) |
|
Constructor public.
Definition at line 61 of file class.ilAdministrationGUI.php.
References $_GET, $_POST, $ilCtrl, $ilias, $ilLog, $lng, $rbacsystem, $tpl, $tree, array, and ilUtil\isAPICall().
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,
"");
90 if (!empty($_GET[
"ref_id"]) && $tree->isInTree($_GET[
"ref_id"]))
92 $this->cur_ref_id = $_GET[
"ref_id"];
98 if ($_GET[
"cmd"] !=
"getDropDown")
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.
◆ executeCommand()
ilAdministrationGUI::executeCommand |
( |
| ) |
|
execute command
Definition at line 109 of file class.ilAdministrationGUI.php.
References $_GET, $_POST, $cmd, $html, $ilias, $lng, $rbacsystem, $ret, $tree, ilMainMenuGUI\_checkAdministrationPermission(), ilObject\_lookupType(), ilObject2GUI\REPOSITORY_NODE_ID, ilUtil\sendFailure(), and showTree().
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");
showTree()
display tree view
redirection script todo: (a better solution should control the processing via a xml file) ...
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static _checkAdministrationPermission()
◆ forward()
ilAdministrationGUI::forward |
( |
| ) |
|
Forward to class/command.
Definition at line 268 of file class.ilAdministrationGUI.php.
References $_GET, $ilias, $tree, ilObject\_lookupType(), ilUtil\redirect(), and USER_FOLDER_ID.
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'])));
307 ilUtil::redirect(ILIAS_HTTP_PATH.
'/'.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");
static _lookupType($a_id, $a_reference=false)
lookup object type
const USER_FOLDER_ID
Class ilObjUserFolder.
static redirect($a_script)
http redirect to other script
◆ getDropDown()
ilAdministrationGUI::getDropDown |
( |
| ) |
|
Get drop down.
Definition at line 370 of file class.ilAdministrationGUI.php.
References $_GET, $layout, $lng, $path, $rbacsystem, $tree, ilObject\_getIcon(), array, exit, ilHelp\getMainMenuTooltip(), and ilUtil\img().
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 &&
433 !$rbacsystem->checkAccess(
'write', $c[
"ref_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);
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
Create styles array
The data for the language used.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
◆ jump()
ilAdministrationGUI::jump |
( |
| ) |
|
◆ jumpToPluginSlot()
ilAdministrationGUI::jumpToPluginSlot |
( |
| ) |
|
Special jump to plugin slot after ilCtrl has been reloaded.
Definition at line 348 of file class.ilAdministrationGUI.php.
References $_GET, and $ilCtrl.
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");
◆ showTree()
ilAdministrationGUI::showTree |
( |
| ) |
|
display tree view
Definition at line 328 of file class.ilAdministrationGUI.php.
References $_GET, $lng, $tpl, and $tree.
Referenced by executeCommand().
332 if (
$_GET[
"admin_mode"] !=
"repository")
337 include_once(
"./Services/Administration/classes/class.ilAdministrationExplorerGUI.php");
339 if (!$exp->handleCommand())
341 $tpl->setLeftNavContent($exp->getHTML());
Administration explorer GUI class.
◆ $cmd
ilAdministrationGUI::$cmd |
◆ $ctrl
ilAdministrationGUI::$ctrl |
◆ $cur_ref_id
ilAdministrationGUI::$cur_ref_id |
◆ $ilias
ilAdministrationGUI::$ilias |
◆ $lng
ilAdministrationGUI::$lng |
◆ $mode
ilAdministrationGUI::$mode |
◆ $rbacsystem
ilAdministrationGUI::$rbacsystem |
◆ $tpl
ilAdministrationGUI::$tpl |
◆ $tree
ilAdministrationGUI::$tree |
The documentation for this class was generated from the following file: