ILIAS  release_7 Revision v7.30-3-g800a261c036
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'];
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 // $this->tab_handling->initTabs(self::TAB_MAIN, self::SUBTAB_SLATES);
90 $g = new ilMMTopItemGUI($this->tab_handling);
91 $this->ctrl->forwardCommand($g);
92 break;
93 case strtolower(ilMMSubItemGUI::class):
94 // $this->tab_handling->initTabs(self::TAB_MAIN, self::SUBTAB_SLATES);
95 $g = new ilMMSubItemGUI($this->tab_handling);
96 $this->ctrl->forwardCommand($g);
97 break;
98 case strtolower(ilMMUploadHandlerGUI::class):
99 $g = new ilMMUploadHandlerGUI();
100 $this->ctrl->forwardCommand($g);
101 break;
102 default:
103 break;
104 }
105 }
106
107
111 public function getType()
112 {
113 return null;
114 }
115}
$_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 ilMMUploadHandlerGUI.
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: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc