ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilLTIRouterGUI Class Reference

Service ilViewRouterGUI This service is used by LTI. More...

+ Collaboration diagram for ilLTIRouterGUI:

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 ilViewRouterGUI This service is used by LTI.

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

Author
Stefan Schneider schne.nosp@m.ider.nosp@m.@hrz..nosp@m.uni-.nosp@m.marbu.nosp@m.rg.d.nosp@m.e
Version
$Id:

Definition at line 13 of file class.ilLTIRouterGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilLTIRouterGUI::__construct ( )

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

References $ilCtrl.

20  {
21  global $ilCtrl;
22  $this->ilCtrl = $ilCtrl;
23  }
This class provides processing control methods.

Member Function Documentation

◆ executeCommand()

ilLTIRouterGUI::executeCommand ( )

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

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

References ilCtrl\forwardCommand(), ilCtrl\getNextClass(), ilCtrl\lookupClassPath(), and ilUtil\sendFailure().

29  {
30  $next_class = $this->ilCtrl->getNextClass($this);
31  $class_file = $this->ilCtrl->lookupClassPath($next_class);
32 
33  if (is_file($class_file)) {
34  include_once($class_file);
35  $gui = $next_class::getInstance(); // Singleton!
36  $this->ilCtrl->forwardCommand($gui);
37  } else {
38  ilUtil::sendFailure('GUI-Class not found! (' . $next_class . ')');
39  }
40  }
This class provides processing control methods.
lookupClassPath($a_class_name)
Get class path that can be used in include statements for a given class name.
getNextClass($a_gui_class=null)
Get next class in the control path from the current class to the target command class.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
forwardCommand($a_gui_object)
Forward flow of control to next gui class this invokes the executeCommand() method of the gui object ...
+ Here is the call graph for this function:

Field Documentation

◆ $ilCtrl

ilLTIRouterGUI::$ilCtrl
protected

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

Referenced by __construct().


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