ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjPluginDispatchGUI Class Reference
+ Collaboration diagram for ilObjPluginDispatchGUI:

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

ilObjPluginDispatchGUI::__construct ( )

Constructor.

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

{
}

Member Function Documentation

& ilObjPluginDispatchGUI::executeCommand ( )

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

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

{
global $ilCtrl;
$next_class = $ilCtrl->getNextClass();
$cmd_class = $ilCtrl->getCmdClass();
if ($cmd_class != "ilobjplugindispatchgui" && $cmd_class != "")
{
$class_path = $ilCtrl->lookupClassPath($next_class);
include_once($class_path);
$class_name = $ilCtrl->getClassForClasspath($class_path);
//echo "-".$class_name."-".$class_path."-";
$this->gui_obj = new $class_name($_GET["ref_id"]);
$ilCtrl->forwardCommand($this->gui_obj);
}
else
{
$this->processCommand($ilCtrl->getCmd());
}
}

+ Here is the call graph for this function:

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().

{
global $ilCtrl;
$type = ilObject::_lookupType($_GET["ref_id"], true);
if ($type != "")
{
include_once("./Services/Component/classes/class.ilPlugin.php");
$pl_name = ilPlugin::lookupNameForId(IL_COMP_SERVICE, "Repository", "robj", $type);
if ($pl_name != "")
{
$gui_cn = "ilObj".$pl_name."GUI";
$ilCtrl->setParameterByClass($gui_cn, "ref_id", $_GET["ref_id"]);
$ilCtrl->redirectByClass($gui_cn, $_GET["forwardCmd"]);
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjPluginDispatchGUI::processCommand (   $a_cmd)

Process command.

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

References forward().

Referenced by executeCommand().

{
switch ($a_cmd)
{
case "forward":
$this->forward();
break;
}
}

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