ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjAdministrativeNotificationGUI.php
Go to the documentation of this file.
1<?php
2
26{
27 public const TAB_PERMISSIONS = 'perm_settings';
28 public const TAB_MAIN = 'main';
29
32
36 public function __construct()
37 {
38 global $DIC;
39
40 $this->ref_id = $DIC->http()->wrapper()->query()->has('ref_id')
41 ? $DIC->http()->wrapper()->query()->retrieve('ref_id', $DIC->refinery()->kindlyTo()->int())
42 : null;
43
44 parent::__construct($this->ref_id);
45
46 $this->lng->loadLanguageModule('adn');
47 $this->tab_handling = new ilADNTabHandling($this->ref_id);
48 $this->admin_notification_access = new ilObjAdministrativeNotificationAccess();
49
50 $this->assignObject();
51 }
52
53 #[\Override]
54 public function executeCommand(): void
55 {
56 $this->admin_notification_access->checkAccessAndThrowException("visible,read");
57
58 $next_class = $this->ctrl->getNextClass();
59
60 if ($next_class == '') {
61 $this->ctrl->redirectByClass(ilADNNotificationGUI::class);
62
63 return;
64 }
65
66 $this->prepareOutput();
67
68 switch ($next_class) {
69 case strtolower(ilPermissionGUI::class):
70 $this->tab_handling->initTabs(self::TAB_PERMISSIONS);
71 $this->tabs_gui->activateTab(self::TAB_PERMISSIONS);
72 $perm_gui = new ilPermissionGUI($this);
73 $this->ctrl->forwardCommand($perm_gui);
74 break;
75 case strtolower(ilADNNotificationGUI::class):
76 $g = new ilADNNotificationGUI($this->tab_handling);
77 $this->ctrl->forwardCommand($g);
78 break;
79 default:
80 break;
81 }
82 }
83
84 public function getType(): string
85 {
87 }
88}
Class ilADNNotificationGUI @ilCtrl_IsCalledBy ilADNNotificationGUI: ilObjAdministrativeNotificationGU...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilObjAdministrativeNotificationAccess $admin_notification_access
__construct()
ilObjAdministrativeNotificationGUI constructor.
New implementation of ilObjectGUI.
assignObject()
create object instance as internal property (repository/workspace switch)
prepareOutput(bool $show_sub_objects=true)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26