ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilADNAbstractGUI Class Reference

Class ilADNAbstractGUI. More...

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

Public Member Functions

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

Data Fields

const IDENTIFIER = 'identifier'
 
ilLanguage $lng
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 

Protected Member Functions

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

Protected Attributes

UIServices $ui
 
Services $http
 
ilToolbarGUI $toolbar
 
ilTabsGUI $tabs
 
ilCtrl $ctrl
 
ilObjAdministrativeNotificationAccess $access
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilADNAbstractGUI::__construct ( protected \ilADNTabHandling  $tab_handling)

ilADNAbstractGUI constructor.

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

51 {
52 global $DIC;
53 $this->tabs = $DIC['ilTabs'];
54 $this->lng = $DIC->language();
55 $this->ctrl = $DIC['ilCtrl'];
56 $this->tpl = $DIC['tpl'];
57 $this->tree = $DIC['tree'];
58 $this->toolbar = $DIC['ilToolbar'];
59 $this->http = $DIC->http();
60 $this->ui = $DIC->ui();
62
63 $this->lng->loadLanguageModule('form');
64 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

Member Function Documentation

◆ determineCommand()

ilADNAbstractGUI::determineCommand ( ?string  $standard = null)
protected
Exceptions
ilException

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

69 : ?string
70 {
71 $this->access->checkAccessAndThrowException('visible,read');
72 $cmd = $this->ctrl->getCmd();
73 if ($cmd !== '') {
74 return $cmd;
75 }
76
77 return $standard;
78 }

References ILIAS\Repository\access(), and ILIAS\Repository\ctrl().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dispatchCommand()

ilADNAbstractGUI::dispatchCommand ( string  $cmd)
abstractprotected

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ executeCommand()

ilADNAbstractGUI::executeCommand ( )

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

82 : void
83 {
84 $next_class = $this->ctrl->getNextClass();
85
86 if ($next_class === '') {
87 $cmd = $this->determineCommand();
88 $this->tpl->setContent($this->dispatchCommand($cmd));
89
90 return;
91 }
92
93 switch ($next_class) {
94 case strtolower(ilADNNotificationGUI::class):
95 $this->tab_handling->initTabs(ilObjAdministrativeNotificationGUI::TAB_MAIN, ilADNNotificationGUI::TAB_TABLE, false);
96 $g = new ilADNNotificationGUI($this->tab_handling);
97 $this->ctrl->forwardCommand($g);
98 break;
99 default:
100 break;
101 }
102 }
dispatchCommand(string $cmd)
determineCommand(?string $standard=null)
Class ilADNNotificationGUI @ilCtrl_IsCalledBy ilADNNotificationGUI: ilObjAdministrativeNotificationGU...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilObjAdministrativeNotificationAccess ilADNAbstractGUI::$access
protected

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

◆ $ctrl

ilCtrl ilADNAbstractGUI::$ctrl
protected

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

◆ $http

Services ilADNAbstractGUI::$http
protected

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

◆ $lng

ilLanguage ilADNAbstractGUI::$lng

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

◆ $tabs

ilTabsGUI ilADNAbstractGUI::$tabs
protected

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

◆ $toolbar

ilToolbarGUI ilADNAbstractGUI::$toolbar
protected

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

◆ $tpl

ilGlobalTemplateInterface ilADNAbstractGUI::$tpl

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

◆ $tree

ilTree ilADNAbstractGUI::$tree

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

◆ $ui

UIServices ilADNAbstractGUI::$ui
protected

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

◆ IDENTIFIER


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