ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjPluginDispatchGUI Class Reference
+ Collaboration diagram for ilObjPluginDispatchGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 executeCommand ()
 
 processCommand ($a_cmd)
 Process command. More...
 
 forward ()
 Forward command to plugin. More...
 

Protected Attributes

 $ctrl
 

Detailed Description

Definition at line 15 of file class.ilObjPluginDispatchGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjPluginDispatchGUI::__construct ( )

Constructor.

Definition at line 25 of file class.ilObjPluginDispatchGUI.php.

References $DIC.

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

Member Function Documentation

◆ executeCommand()

ilObjPluginDispatchGUI::executeCommand ( )

Definition at line 32 of file class.ilObjPluginDispatchGUI.php.

References $_GET, $ctrl, $ilCtrl, and processCommand().

33  {
35 
36  $next_class = $ilCtrl->getNextClass();
37  $cmd_class = $ilCtrl->getCmdClass();
38 
39  if ($cmd_class != "ilobjplugindispatchgui" && $cmd_class != "") {
40  $class_path = $ilCtrl->lookupClassPath($next_class);
41  include_once($class_path);
42  $class_name = $ilCtrl->getClassForClasspath($class_path);
43  //echo "-".$class_name."-".$class_path."-";
44  $this->gui_obj = new $class_name($_GET["ref_id"]);
45  $ilCtrl->forwardCommand($this->gui_obj);
46  } else {
47  $this->processCommand($ilCtrl->getCmd());
48  }
49  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
processCommand($a_cmd)
Process command.
+ Here is the call graph for this function:

◆ forward()

ilObjPluginDispatchGUI::forward ( )

Forward command to plugin.

Definition at line 66 of file class.ilObjPluginDispatchGUI.php.

References $_GET, $ctrl, $ilCtrl, $type, ilObject\_lookupType(), and ilObjectPlugin\getPluginObjectByType().

Referenced by processCommand().

67  {
69 
70  $type = ilObject::_lookupType($_GET["ref_id"], true);
71  if ($type != "") {
72  include_once("./Services/Component/classes/class.ilPlugin.php");
74  if ($plugin) {
75  $gui_cn = "ilObj" . $plugin->getPluginName() . "GUI";
76  $ilCtrl->setParameterByClass($gui_cn, "ref_id", $_GET["ref_id"]);
77  $ilCtrl->redirectByClass($gui_cn, $_GET["forwardCmd"]);
78  }
79  }
80  }
$type
$_GET["client_id"]
static getPluginObjectByType($type)
Return either a repoObject plugin or a orgunit extension plugin or null if the type is not a plugin...
global $ilCtrl
Definition: ilias.php:18
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processCommand()

ilObjPluginDispatchGUI::processCommand (   $a_cmd)

Process command.

Definition at line 54 of file class.ilObjPluginDispatchGUI.php.

References forward().

Referenced by executeCommand().

55  {
56  switch ($a_cmd) {
57  case "forward":
58  $this->forward();
59  break;
60  }
61  }
forward()
Forward command to plugin.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $ctrl

ilObjPluginDispatchGUI::$ctrl
protected

Definition at line 20 of file class.ilObjPluginDispatchGUI.php.

Referenced by executeCommand(), and forward().


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