ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilUIPluginRouterGUI 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 ilUIPluginRouterGUI:
+ Collaboration diagram for ilUIPluginRouterGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Protected Attributes

ilCtrl $ctrl
 

Private Attributes

ilGlobalTemplateInterface $main_tpl
 

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 ilUIPluginRouterGUI

This service is used by plugins. It allows any plugin to get called by a http request without dependencies to a certain module or service other than this.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch, Oskar Truffer ot@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

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

Constructor & Destructor Documentation

◆ __construct()

ilUIPluginRouterGUI::__construct ( )

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

33 {
34 global $DIC;
35 $this->main_tpl = $DIC->ui()->mainTemplate();
36 $this->ctrl = $DIC->ctrl();
37 }
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilUIPluginRouterGUI::executeCommand ( )

Definition at line 39 of file class.ilUIPluginRouterGUI.php.

39 : void
40 {
41 $next_class = $this->ctrl->getNextClass($this);
42 switch ($next_class) {
43 default:
44 $class_file = '../' . ltrim($this->ctrl->lookupClassPath($next_class), './');
45 if (is_file($class_file)) {
46 include_once($class_file);
47 $gui = new $next_class();
48 $this->ctrl->forwardCommand($gui);
49 } else {
50 $this->main_tpl->setOnScreenMessage('failure', 'Plugin GUI-Class not found! (' . $next_class . ')');
51 }
52 break;
53 }
54 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilUIPluginRouterGUI::$ctrl
protected

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

◆ $main_tpl

ilGlobalTemplateInterface ilUIPluginRouterGUI::$main_tpl
private

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


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