ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjMainMenuGUI.php
Go to the documentation of this file.
1 <?php
2 
12 {
13 
17  private $tab_handling;
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 }
Class ilObjMainMenuGUI.
__construct()
ilObjMainMenuGUI constructor.
New implementation of ilObjectGUI.
$_GET["client_id"]
Class ilMMUploadHandlerGUI.
Class ilMMTabHandling.
Class ilMMTopItemGUI ilMMSubItemGUI: ilObjMainMenuGUI ilMMSubItemGUI: ilMMItemTranslationGUI.
Class ilMMTopItemGUI ilMMTopItemGUI: ilObjMainMenuGUI ilMMTopItemGUI: ilMMItemTranslationGUI.
__construct(Container $dic, ilPlugin $plugin)
$DIC
Definition: xapitoken.php:46
prepareOutput($a_show_subobjects=true)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
assignObject()
create object instance as internal property (repository/workspace switch)