ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilUIPluginRouterGUI Class Reference

Class ilUIPluginRouterGUI. More...

+ Collaboration diagram for ilUIPluginRouterGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 The only thing this execute Command does is forward the command in the command chain. More...
 

Protected Attributes

 $ctrl
 

Detailed Description

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 12 of file class.ilUIPluginRouterGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilUIPluginRouterGUI::__construct ( )

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

22 {
23 global $DIC;
24 $this->ctrl = $DIC->ctrl();
25 }
$DIC
Definition: xapitoken.php:46

References $DIC.

Member Function Documentation

◆ executeCommand()

ilUIPluginRouterGUI::executeCommand ( )

The only thing this execute Command does is forward the command in the command chain.

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

32 {
33 $next_class = $this->ctrl->getNextClass($this);
34 switch ($next_class) {
35 default:
36 $class_file = $this->ctrl->lookupClassPath($next_class);
37 if (is_file($class_file)) {
38 include_once($class_file);
39 $gui = new $next_class();
40 $this->ctrl->forwardCommand($gui);
41 } else {
42 ilUtil::sendFailure('Plugin GUI-Class not found! (' . $next_class . ')');
43 }
44 break;
45 }
46 }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.

References ilUtil\sendFailure().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilUIPluginRouterGUI::$ctrl
protected

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


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