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.

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

References $DIC.

Member Function Documentation

◆ executeCommand()

ilObjPluginDispatchGUI::executeCommand ( )

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

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"]
processCommand($a_cmd)
Process command.
global $ilCtrl
Definition: ilias.php:18

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

+ Here is the call graph for this function:

◆ forward()

ilObjPluginDispatchGUI::forward ( )

Forward command to plugin.

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

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 }
static getPluginObjectByType($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
$type

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

Referenced by processCommand().

+ 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.

55 {
56 switch ($a_cmd) {
57 case "forward":
58 $this->forward();
59 break;
60 }
61 }
forward()
Forward command to plugin.

References forward().

Referenced by executeCommand().

+ 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: