ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilADNAbstractGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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'
 
ilLanguage $lng
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 

Protected Member Functions

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

Protected Attributes

ILIAS DI UIServices $ui
 
ILIAS HTTP Services $http
 
ilToolbarGUI $toolbar
 
ilADNTabHandling $tab_handling
 
ilTabsGUI $tabs
 
ilCtrl $ctrl
 
ilObjAdministrativeNotificationAccess $access
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilADNAbstractGUI

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

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

Constructor & Destructor Documentation

◆ __construct()

ilADNAbstractGUI::__construct ( ilADNTabHandling  $tab_handling)

ilADNAbstractGUI constructor.

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

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

49  {
50  global $DIC;
51 
52  $this->tab_handling = $tab_handling;
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  }
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
ilADNTabHandling $tab_handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ 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.

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

Referenced by executeCommand().

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  }
+ 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 82 of file class.ilADNAbstractGUI.php.

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

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  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
determineCommand(?string $standard=null)
dispatchCommand(string $cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilObjAdministrativeNotificationAccess ilADNAbstractGUI::$access
protected

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

◆ $ctrl

ilCtrl ilADNAbstractGUI::$ctrl
protected

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

◆ $http

ILIAS HTTP Services ilADNAbstractGUI::$http
protected

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

◆ $lng

ilLanguage ilADNAbstractGUI::$lng

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

◆ $tab_handling

ilADNTabHandling ilADNAbstractGUI::$tab_handling
protected

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

Referenced by __construct().

◆ $tabs

ilTabsGUI ilADNAbstractGUI::$tabs
protected

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

◆ $toolbar

ilToolbarGUI ilADNAbstractGUI::$toolbar
protected

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

◆ $tpl

ilGlobalTemplateInterface ilADNAbstractGUI::$tpl

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

◆ $tree

ilTree ilADNAbstractGUI::$tree

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

◆ $ui

ILIAS DI UIServices ilADNAbstractGUI::$ui
protected

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

◆ IDENTIFIER

const ilADNAbstractGUI::IDENTIFIER = 'identifier'

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