ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilUIPluginRouterGUI Class Reference

Service ilRouterGUI This service is used by plugins. 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

 $ilCtrl
 

Detailed Description

Service ilRouterGUI 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
Version
$Id:

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

Constructor & Destructor Documentation

◆ __construct()

ilUIPluginRouterGUI::__construct ( )

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

19 {
20 global $ilCtrl;
21
22 $this->ctrl = $ilCtrl;
23 }

References $ilCtrl.

Member Function Documentation

◆ executeCommand()

ilUIPluginRouterGUI::executeCommand ( )

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

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

28 {
29 $next_class = $this->ctrl->getNextClass($this);
30 switch ($next_class) {
31 default:
32 $class_file = $this->ctrl->lookupClassPath($next_class);
33 if (is_file($class_file)) {
34 include_once($class_file);
35 $gui = new $next_class();
36 $this->ctrl->forwardCommand($gui);
37 } else {
38 ilUtil::sendFailure('Plugin GUI-Class not found! ('.$next_class.')');
39 }
40 break;
41 }
42 }
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

◆ $ilCtrl

ilUIPluginRouterGUI::$ilCtrl
protected

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

Referenced by __construct().


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