ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
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 14 of file class.ilObjPluginDispatchGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjPluginDispatchGUI::__construct ( )

Constructor.

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

20  {
21  }

Member Function Documentation

◆ executeCommand()

& ilObjPluginDispatchGUI::executeCommand ( )

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

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

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

References $_GET, $ilCtrl, ilObject\_lookupType(), IL_COMP_SERVICE, and ilPlugin\lookupNameForId().

Referenced by processCommand().

62  {
63  global $ilCtrl;
64 
65  $type = ilObject::_lookupType($_GET["ref_id"], true);
66  if ($type != "")
67  {
68  include_once("./Services/Component/classes/class.ilPlugin.php");
69  $pl_name = ilPlugin::lookupNameForId(IL_COMP_SERVICE, "Repository", "robj", $type);
70  if ($pl_name != "")
71  {
72  $gui_cn = "ilObj".$pl_name."GUI";
73  $ilCtrl->setParameterByClass($gui_cn, "ref_id", $_GET["ref_id"]);
74  $ilCtrl->redirectByClass($gui_cn, $_GET["forwardCmd"]);
75  }
76  }
77  }
$_GET["client_id"]
lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
global $ilCtrl
Definition: ilias.php:18
static _lookupType($a_id, $a_reference=false)
lookup object type
const IL_COMP_SERVICE
+ 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 48 of file class.ilObjPluginDispatchGUI.php.

References forward().

Referenced by executeCommand().

49  {
50  switch ($a_cmd)
51  {
52  case "forward":
53  $this->forward();
54  break;
55  }
56  }
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: