ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.

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

ilUIPluginRouterGUI::__construct ( )

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

References $ilCtrl.

{
global $ilCtrl;
$this->ctrl = $ilCtrl;
}

Member Function Documentation

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.

References ilUtil\sendFailure().

{
$next_class = $this->ctrl->getNextClass($this);
switch ($next_class) {
default:
$class_file = $this->ctrl->lookupClassPath($next_class);
if (is_file($class_file)) {
include_once($class_file);
$gui = new $next_class();
$this->ctrl->forwardCommand($gui);
} else {
ilUtil::sendFailure('Plugin GUI-Class not found! ('.$next_class.')');
}
break;
}
}

+ Here is the call graph for this function:

Field Documentation

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: