ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilPluginConfigGUI Class Reference

Parent class for all plugin config gui classes. More...

+ Inheritance diagram for ilPluginConfigGUI:
+ Collaboration diagram for ilPluginConfigGUI:

Public Member Functions

 setPluginObject ($a_val)
 Set plugin object. More...
 
 getPluginObject ()
 Get plugin object. More...
 
 executeCommand ()
 Execute command. More...
 
 performCommand ($cmd)
 

Protected Attributes

 $plugin_object = null
 

Detailed Description

Parent class for all plugin config gui classes.

Author
Alex Killing <alex.killing>
Version
$Id$

Definition at line 11 of file class.ilPluginConfigGUI.php.

Member Function Documentation

◆ executeCommand()

ilPluginConfigGUI::executeCommand ( )

Execute command.

Parameters

return

Definition at line 41 of file class.ilPluginConfigGUI.php.

42 {
43 global $DIC;
44 $ilCtrl = $DIC->ctrl();
45 $ilTabs = $DIC->tabs();
46 $lng = $DIC->language();
47 $tpl = $DIC['tpl'];
48
49 $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "ctype", $_GET["ctype"]);
50 $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "cname", $_GET["cname"]);
51 $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "slot_id", $_GET["slot_id"]);
52 $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "plugin_id", $_GET["plugin_id"]);
53 $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "pname", $_GET["pname"]);
54
55 $tpl->setTitle($lng->txt("cmps_plugin") . ": " . $_GET["pname"]);
56 $tpl->setDescription("");
57
58 $ilTabs->clearTargets();
59
60 if ($_GET["plugin_id"]) {
61 $ilTabs->setBackTarget(
62 $lng->txt("cmps_plugin"),
63 $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "showPlugin")
64 );
65 } else {
66 $ilTabs->setBackTarget(
67 $lng->txt("cmps_plugins"),
68 $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "listPlugins")
69 );
70 }
71
72 $this->performCommand($ilCtrl->getCmd("configure"));
73 }
$tpl
Definition: ilias.php:10
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7
$lng

References $_GET, $DIC, $ilCtrl, $lng, $tpl, and performCommand().

+ Here is the call graph for this function:

◆ getPluginObject()

ilPluginConfigGUI::getPluginObject ( )
final

Get plugin object.

Returns
ilPlugin object

Definition at line 30 of file class.ilPluginConfigGUI.php.

References $plugin_object.

Referenced by ilCloudPluginConfigGUI\getTableName().

+ Here is the caller graph for this function:

◆ performCommand()

ilPluginConfigGUI::performCommand (   $cmd)
abstract

Reimplemented in ilCloudPluginConfigGUI.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ setPluginObject()

ilPluginConfigGUI::setPluginObject (   $a_val)
final

Set plugin object.

Parameters
objectplugin object

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

21 {
22 $this->plugin_object = $a_val;
23 }

Field Documentation

◆ $plugin_object

ilPluginConfigGUI::$plugin_object = null
protected

Definition at line 13 of file class.ilPluginConfigGUI.php.

Referenced by getPluginObject().


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