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 ilAdministrationGUI: ilObjFileAccessSettingsGUI, ilPermissionGUI, ilObjRemoteTestGUI ilAdministrationGUI: ilObjLearningSequenceAdminGUI
Definition at line 44 of file class.ilAdministrationGUI.php.
◆ __construct()
ilAdministrationGUI::__construct |
( |
| ) |
|
Constructor public.
Definition at line 84 of file class.ilAdministrationGUI.php.
References $_GET, $_POST, $DIC, $ilCtrl, $lng, $objDefinition, $rbacsystem, $tpl, $tree, and ilUtil\isAPICall().
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") {
◆ executeCommand()
ilAdministrationGUI::executeCommand |
( |
| ) |
|
execute command
Definition at line 138 of file class.ilAdministrationGUI.php.
References $_GET, $_POST, $cmd, $db, $error, $help, $html, $ilDB, $ilErr, $objDefinition, $rbacsystem, $ret, ilObject\_lookupType(), ilObject2GUI\REPOSITORY_NODE_ID, ilUtil\sendFailure(), and showTree().
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");
showTree()
display tree view
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
◆ forward()
ilAdministrationGUI::forward |
( |
| ) |
|
Forward to class/command.
Definition at line 269 of file class.ilAdministrationGUI.php.
References $_GET, $error, $ilErr, ilObject\_lookupType(), ilUtil\redirect(), and USER_FOLDER_ID.
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']))
301 ilUtil::redirect(ILIAS_HTTP_PATH .
'/' . 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");
static _lookupType($a_id, $a_reference=false)
lookup object type
const USER_FOLDER_ID
Class ilObjUserFolder.
static redirect($a_script)
◆ getDropDown()
ilAdministrationGUI::getDropDown |
( |
| ) |
|
Get drop down.
Definition at line 358 of file class.ilAdministrationGUI.php.
References $_GET, $c, $i, $lng, $path, $rbacsystem, $tree, exit, ilHelp\getMainMenuTooltip(), and ilUtil\img().
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"],
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.
◆ jump()
ilAdministrationGUI::jump |
( |
| ) |
|
◆ jumpToPluginSlot()
ilAdministrationGUI::jumpToPluginSlot |
( |
| ) |
|
Special jump to plugin slot after ilCtrl has been reloaded.
Definition at line 339 of file class.ilAdministrationGUI.php.
References $_GET, $ctrl, and $ilCtrl.
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");
◆ showTree()
ilAdministrationGUI::showTree |
( |
| ) |
|
display tree view
Definition at line 319 of file class.ilAdministrationGUI.php.
References $_GET, $lng, $tpl, and $tree.
Referenced by executeCommand().
325 if (
$_GET[
"admin_mode"] !=
"repository") {
329 include_once(
"./Services/Administration/classes/class.ilAdministrationExplorerGUI.php");
331 if (!$exp->handleCommand()) {
332 $tpl->setLeftNavContent($exp->getHTML());
Administration explorer GUI class.
◆ $cmd
ilAdministrationGUI::$cmd |
◆ $ctrl
ilAdministrationGUI::$ctrl |
◆ $cur_ref_id
ilAdministrationGUI::$cur_ref_id |
◆ $db
◆ $error
ilAdministrationGUI::$error |
|
protected |
◆ $help
ilAdministrationGUI::$help |
|
protected |
◆ $lng
ilAdministrationGUI::$lng |
◆ $main_menu
ilAdministrationGUI::$main_menu |
|
protected |
◆ $mode
ilAdministrationGUI::$mode |
◆ $objDefinition
ilAdministrationGUI::$objDefinition |
|
protected |
◆ $rbacsystem
ilAdministrationGUI::$rbacsystem |
◆ $tpl
ilAdministrationGUI::$tpl |
◆ $tree
ilAdministrationGUI::$tree |
The documentation for this class was generated from the following file: