ILIAS  release_7 Revision v7.30-3-g800a261c036
ilADNAbstractGUI Class Reference

Class ilADNAbstractGUI. More...

+ Inheritance diagram for ilADNAbstractGUI:
+ Collaboration diagram for ilADNAbstractGUI:

Public Member Functions

 __construct (ilADNTabHandling $tab_handling)
 ilADNAbstractGUI constructor. More...
 
 executeCommand ()
 

Data Fields

const IDENTIFIER = 'identifier'
 
 $lng
 
 $tpl
 
 $tree
 

Protected Member Functions

 determineCommand (string $standard=null)
 
 dispatchCommand (string $cmd)
 

Protected Attributes

 $ui
 
 $http
 
 $toolbar
 
 $tab_handling
 
 $tabs
 
 $ctrl
 
 $access
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilADNAbstractGUI::__construct ( ilADNTabHandling  $tab_handling)

ilADNAbstractGUI constructor.

Parameters
ilADNTabHandling$tab_handling

Definition at line 56 of file class.ilADNAbstractGUI.php.

References $DIC, $tab_handling, ILIAS\FileDelivery\http(), and ui().

57  {
58  global $DIC;
59 
60  $this->tab_handling = $tab_handling;
61  $this->tabs = $DIC['ilTabs'];
62  $this->lng = $DIC->language();
63  $this->ctrl = $DIC['ilCtrl'];
64  $this->tpl = $DIC['tpl'];
65  $this->tree = $DIC['tree'];
66  $this->toolbar = $DIC['ilToolbar'];
67  $this->http = $DIC->http();
68  $this->ui = $DIC->ui();
69  $this->access = new ilObjAdministrativeNotificationAccess();
70 
71  $this->lng->loadLanguageModule('form');
72  }
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: goto.php:24
ui()
Definition: ui.php:5
+ Here is the call graph for this function:

Member Function Documentation

◆ determineCommand()

ilADNAbstractGUI::determineCommand ( string  $standard = null)
protected
Parameters
string | null$standard
Returns
string
Exceptions
ilException

Definition at line 79 of file class.ilADNAbstractGUI.php.

References dispatchCommand().

Referenced by executeCommand().

79  : ?string
80  {
81  $this->access->checkAccessAndThrowException('visible,read');
82  $cmd = $this->ctrl->getCmd();
83  if ($cmd !== '') {
84  return $cmd;
85  }
86 
87  return $standard;
88  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dispatchCommand()

ilADNAbstractGUI::dispatchCommand ( string  $cmd)
abstractprotected

Referenced by determineCommand(), and executeCommand().

+ Here is the caller graph for this function:

◆ executeCommand()

ilADNAbstractGUI::executeCommand ( )

Definition at line 92 of file class.ilADNAbstractGUI.php.

References determineCommand(), dispatchCommand(), ilObjAdministrativeNotificationGUI\TAB_MAIN, and ilADNNotificationGUI\TAB_TABLE.

92  : void
93  {
94  $next_class = $this->ctrl->getNextClass();
95 
96  if ($next_class === '') {
97  $cmd = $this->determineCommand();
98  $this->tpl->setContent($this->dispatchCommand($cmd));
99 
100  return;
101  }
102 
103  switch ($next_class) {
104  case strtolower(ilADNNotificationGUI::class):
105  $this->tab_handling->initTabs(ilObjAdministrativeNotificationGUI::TAB_MAIN, ilADNNotificationGUI::TAB_TABLE, false);
106  $g = new ilADNNotificationGUI($this->tab_handling);
107  $this->ctrl->forwardCommand($g);
108  break;
109  default:
110  break;
111  }
112  }
Class ilADNNotificationGUI ilADNNotificationGUI: ilObjAdministrativeNotificationGUI ilADNNotificati...
dispatchCommand(string $cmd)
determineCommand(string $standard=null)
Class ilObjAdministrativeNotificationGUI ilObjAdministrativeNotificationGUI: ilAdministrationGUI il...
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilADNAbstractGUI::$access
protected

Definition at line 50 of file class.ilADNAbstractGUI.php.

◆ $ctrl

ilADNAbstractGUI::$ctrl
protected

Definition at line 38 of file class.ilADNAbstractGUI.php.

◆ $http

ilADNAbstractGUI::$http
protected

Definition at line 18 of file class.ilADNAbstractGUI.php.

◆ $lng

ilADNAbstractGUI::$lng

Definition at line 34 of file class.ilADNAbstractGUI.php.

◆ $tab_handling

ilADNAbstractGUI::$tab_handling
protected

Definition at line 26 of file class.ilADNAbstractGUI.php.

Referenced by __construct().

◆ $tabs

ilADNAbstractGUI::$tabs
protected

Definition at line 30 of file class.ilADNAbstractGUI.php.

◆ $toolbar

ilADNAbstractGUI::$toolbar
protected

Definition at line 22 of file class.ilADNAbstractGUI.php.

◆ $tpl

ilADNAbstractGUI::$tpl

Definition at line 42 of file class.ilADNAbstractGUI.php.

◆ $tree

ilADNAbstractGUI::$tree

Definition at line 46 of file class.ilADNAbstractGUI.php.

◆ $ui

ilADNAbstractGUI::$ui
protected

Definition at line 14 of file class.ilADNAbstractGUI.php.

◆ IDENTIFIER

const ilADNAbstractGUI::IDENTIFIER = 'identifier'

The documentation for this class was generated from the following file: