ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjMainMenuGUI.php
Go to the documentation of this file.
1<?php
2
12{
13
21 protected $rbacsystem;
25 protected $tabs;
29 public $lng;
33 protected $ctrl;
37 public $tpl;
41 public $tree;
42 const TAB_PERMISSIONS = 'perm_settings';
43 const TAB_MAIN = 'main';
44
45
49 public function __construct()
50 {
51 global $DIC;
52
53 $ref_id = (int) $_GET['ref_id'];
54 parent::__construct($ref_id);
55
56 $this->tabs = $DIC['ilTabs'];
57 $this->lng = $DIC->language();
58 $this->lng->loadLanguageModule('mme');
59 $this->ctrl = $DIC['ilCtrl'];
60 $this->tpl = $DIC['tpl'];
61 $this->tree = $DIC['tree'];
62 $this->rbacsystem = $DIC['rbacsystem'];
63 $this->tab_handling = new ilMMTabHandling($ref_id);
64
65 $this->assignObject();
66 }
67
68
69 public function executeCommand()
70 {
71 $next_class = $this->ctrl->getNextClass();
72
73 if ($next_class == '') {
74 $this->ctrl->redirectByClass(ilMMTopItemGUI::class);
75
76 return;
77 }
78
79 $this->prepareOutput();
80
81 switch ($next_class) {
82 case strtolower(ilPermissionGUI::class):
83 $this->tab_handling->initTabs(self::TAB_PERMISSIONS);
84 $this->tabs->activateTab(self::TAB_PERMISSIONS);
85 $perm_gui = new ilPermissionGUI($this);
86 $this->ctrl->forwardCommand($perm_gui);
87 break;
88 case strtolower(ilMMTopItemGUI::class):
89 $g = new ilMMTopItemGUI($this->tab_handling);
90 $this->ctrl->forwardCommand($g);
91 break;
92 case strtolower(ilMMSubItemGUI::class):
93 $g = new ilMMSubItemGUI($this->tab_handling);
94 $this->ctrl->forwardCommand($g);
95 break;
96 default:
97 break;
98 }
99 }
100
101
105 public function getType()
106 {
107 return null;
108 }
109}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilMMTopItemGUI @ilCtrl_IsCalledBy ilMMSubItemGUI: ilObjMainMenuGUI @ilCtrl_Calls ilMMSubItemGUI...
Class ilMMTabHandling.
Class ilMMTopItemGUI @ilCtrl_IsCalledBy ilMMTopItemGUI: ilObjMainMenuGUI @ilCtrl_Calls ilMMTopItemGUI...
Class ilObjMainMenuGUI.
__construct()
ilObjMainMenuGUI constructor.
executeCommand()
execute command
New implementation of ilObjectGUI.
prepareOutput($a_show_subobjects=true)
prepare output
assignObject()
create object instance as internal property (repository/workspace switch)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
global $DIC
Definition: saml.php:7