ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjAdministrativeNotificationGUI.php
Go to the documentation of this file.
1<?php
2
10{
11
19 protected $rbacsystem;
23 protected $tabs;
27 public $lng;
31 protected $ctrl;
35 public $tpl;
39 public $tree;
40 const TAB_PERMISSIONS = 'perm_settings';
41 const TAB_MAIN = 'main';
45 protected $error_handling;
46
50 public function __construct()
51 {
52 global $DIC;
53
54 $ref_id = (int) $_GET['ref_id'];
56
57 $this->tabs = $DIC['ilTabs'];
58 $this->lng = $DIC->language();
59 $this->lng->loadLanguageModule('adn');
60 $this->ctrl = $DIC['ilCtrl'];
61 $this->tpl = $DIC['tpl'];
62 $this->tree = $DIC['tree'];
63 $this->rbacsystem = $DIC['rbacsystem'];
64 $this->tab_handling = new ilADNTabHandling($ref_id);
65 $this->error_handling = $DIC["ilErr"];
66 $this->access = new ilObjAdministrativeNotificationAccess();
67
68 $this->assignObject();
69 }
70
71 public function executeCommand()
72 {
73 $this->access->checkAccessAndThrowException("visible,read");
74
75 $next_class = $this->ctrl->getNextClass();
76
77 if ($next_class == '') {
78 $this->ctrl->redirectByClass(ilADNNotificationGUI::class);
79
80 return;
81 }
82
83 $this->prepareOutput();
84
85 switch ($next_class) {
86 case strtolower(ilPermissionGUI::class):
87 $this->tab_handling->initTabs(self::TAB_PERMISSIONS);
88 $this->tabs->activateTab(self::TAB_PERMISSIONS);
89 $perm_gui = new ilPermissionGUI($this);
90 $this->ctrl->forwardCommand($perm_gui);
91 break;
92 case strtolower(ilADNNotificationGUI::class):
93 $g = new ilADNNotificationGUI($this->tab_handling);
94 $this->ctrl->forwardCommand($g);
95 break;
96 default:
97 break;
98 }
99 }
100
104 public function getType()
105 {
106 return null;
107 }
108}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilADNNotificationGUI @ilCtrl_IsCalledBy ilADNNotificationGUI: ilObjAdministrativeNotificationGU...
Class ilADNTabHandling.
Class ilObjAdministrativeNotificationGUI @ilCtrl_IsCalledBy ilObjAdministrativeNotificationGUI: ilAdm...
__construct()
ilObjAdministrativeNotificationGUI constructor.
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