ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilObjPluginDispatchGUI::__construct ( )

Constructor.

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

21  {
22  }

Member Function Documentation

◆ executeCommand()

ilObjPluginDispatchGUI::executeCommand ( )

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

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

25  {
26  global $ilCtrl;
27 
28  $next_class = $ilCtrl->getNextClass();
29  $cmd_class = $ilCtrl->getCmdClass();
30 
31  if ($cmd_class != "ilobjplugindispatchgui" && $cmd_class != "")
32  {
33  $class_path = $ilCtrl->lookupClassPath($next_class);
34  include_once($class_path);
35  $class_name = $ilCtrl->getClassForClasspath($class_path);
36 //echo "-".$class_name."-".$class_path."-";
37  $this->gui_obj = new $class_name($_GET["ref_id"]);
38  $ilCtrl->forwardCommand($this->gui_obj);
39  }
40  else
41  {
42  $this->processCommand($ilCtrl->getCmd());
43  }
44  }
$_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 62 of file class.ilObjPluginDispatchGUI.php.

References $_GET, $ilCtrl, ilObject\_lookupType(), and ilObjectPlugin\getRepoPluginObjectByType().

Referenced by processCommand().

63  {
64  global $ilCtrl;
65 
66  $type = ilObject::_lookupType($_GET["ref_id"], true);
67  if ($type != "")
68  {
69  include_once("./Services/Component/classes/class.ilPlugin.php");
71  if ($plugin)
72  {
73  $gui_cn = "ilObj".$plugin->getPluginName()."GUI";
74  $ilCtrl->setParameterByClass($gui_cn, "ref_id", $_GET["ref_id"]);
75  $ilCtrl->redirectByClass($gui_cn, $_GET["forwardCmd"]);
76  }
77  }
78  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
static getRepoPluginObjectByType($type)
Return either a repoObject plugin or a orgunit extension plugin or null if the type is not a plugin...
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 49 of file class.ilObjPluginDispatchGUI.php.

References forward().

Referenced by executeCommand().

50  {
51  switch ($a_cmd)
52  {
53  case "forward":
54  $this->forward();
55  break;
56  }
57  }
forward()
Forward command to plugin.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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