ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

You can provide a configuration screen in the ILIAS administration if you implement the class class.il<plugin_name>ConfigGUI.php which should extend ilPluginConfigGUI.

The access the configuration class open the ILIAS Administration > Plugins > Actions (of your Plugin) > Configure

IMPORTANT: Note, that for the configure action to be displayed in your plugins actions dropdown, you need to reload the plugins control structure. You can force your plugin to do so, by updating the plugins version in plugin.php and select Update in the plugins actions in the table in the plugin administration.

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

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

Member Function Documentation

◆ executeCommand()

ilPluginConfigGUI::executeCommand ( )

Execute command.

Parameters

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

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

51  {
52  global $DIC;
53  $ilCtrl = $DIC->ctrl();
54  $ilTabs = $DIC->tabs();
55  $lng = $DIC->language();
56  $tpl = $DIC['tpl'];
57 
58  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "ctype", $_GET["ctype"]);
59  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "cname", $_GET["cname"]);
60  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "slot_id", $_GET["slot_id"]);
61  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "plugin_id", $_GET["plugin_id"]);
62  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "pname", $_GET["pname"]);
63 
64  $tpl->setTitle($lng->txt("cmps_plugin") . ": " . $_GET["pname"]);
65  $tpl->setDescription("");
66 
67  $ilTabs->clearTargets();
68 
69  if ($_GET["plugin_id"]) {
70  $ilTabs->setBackTarget(
71  $lng->txt("cmps_plugin"),
72  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "showPlugin")
73  );
74  } else {
75  $ilTabs->setBackTarget(
76  $lng->txt("cmps_plugins"),
77  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "listPlugins")
78  );
79  }
80 
81  $this->performCommand($ilCtrl->getCmd("configure"));
82  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
$lng
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

◆ getPluginObject()

ilPluginConfigGUI::getPluginObject ( )
final

Get plugin object.

Returns
ilPlugin object

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

References $plugin_object.

Referenced by ilCloudPluginConfigGUI\getTableName().

40  {
41  return $this->plugin_object;
42  }
+ Here is the caller graph for this function:

◆ performCommand()

ilPluginConfigGUI::performCommand (   $cmd)
abstract

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 29 of file class.ilPluginConfigGUI.php.

30  {
31  $this->plugin_object = $a_val;
32  }

Field Documentation

◆ $plugin_object

ilPluginConfigGUI::$plugin_object = null
protected

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

Referenced by getPluginObject().


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