ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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

 $ctrl
 
 $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 25 of file class.ilUIPluginRouterGUI.php.

References $DIC, and $ilCtrl.

26  {
27  global $DIC;
28 
29  $ilCtrl = $DIC->ctrl();
30 
31  $this->ctrl = $ilCtrl;
32  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ executeCommand()

ilUIPluginRouterGUI::executeCommand ( )

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

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

References ilUtil\sendFailure().

38  {
39  $next_class = $this->ctrl->getNextClass($this);
40  switch ($next_class) {
41  default:
42  $class_file = $this->ctrl->lookupClassPath($next_class);
43  if (is_file($class_file)) {
44  include_once($class_file);
45  $gui = new $next_class();
46  $this->ctrl->forwardCommand($gui);
47  } else {
48  ilUtil::sendFailure('Plugin GUI-Class not found! (' . $next_class . ')');
49  }
50  break;
51  }
52  }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilUIPluginRouterGUI::$ctrl
protected

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

◆ $ilCtrl

ilUIPluginRouterGUI::$ilCtrl
protected

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

Referenced by __construct().


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