ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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  public function executeCommand(): void
54  {
55  $this->admin_notification_access->checkAccessAndThrowException("visible,read");
56 
57  $next_class = $this->ctrl->getNextClass();
58 
59  if ($next_class == '') {
60  $this->ctrl->redirectByClass(ilADNNotificationGUI::class);
61 
62  return;
63  }
64 
65  $this->prepareOutput();
66 
67  switch ($next_class) {
68  case strtolower(ilPermissionGUI::class):
69  $this->tab_handling->initTabs(self::TAB_PERMISSIONS);
70  $this->tabs_gui->activateTab(self::TAB_PERMISSIONS);
71  $perm_gui = new ilPermissionGUI($this);
72  $this->ctrl->forwardCommand($perm_gui);
73  break;
74  case strtolower(ilADNNotificationGUI::class):
75  $g = new ilADNNotificationGUI($this->tab_handling);
76  $this->ctrl->forwardCommand($g);
77  break;
78  default:
79  break;
80  }
81  }
82 
83  public function getType(): string
84  {
86  }
87 }
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...
New implementation of ilObjectGUI.
prepareOutput(bool $show_sub_objects=true)
global $DIC
Definition: feed.php:28
__construct()
ilObjAdministrativeNotificationGUI constructor.
ilObjAdministrativeNotificationAccess $admin_notification_access
__construct(Container $dic, ilPlugin $plugin)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assignObject()
create object instance as internal property (repository/workspace switch)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...