ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilPluginConfigGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilPluginConfigGUI:

Public Member Functions

 setPluginObject (ilPlugin $a_val)
 
 getPluginObject ()
 
 executeCommand ()
 Execute command. More...
 
 performCommand (string $cmd)
 

Protected Attributes

ilPlugin $plugin_object = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 36 of file class.ilPluginConfigGUI.php.

Member Function Documentation

◆ executeCommand()

ilPluginConfigGUI::executeCommand ( )

Execute command.

Parameters

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

References $DIC, $lng, ILIAS\UI\examples\Layout\Page\Standard\$request_wrapper, and performCommand().

56  : void
57  {
58  global $DIC;
59  $ilCtrl = $DIC->ctrl();
60  $ilTabs = $DIC->tabs();
61  $lng = $DIC->language();
62  $tpl = $DIC['tpl'];
63  $request_wrapper = $DIC->http()->wrapper()->query();
64  $string_trafo = $DIC["refinery"]->kindlyTo()->string();
65 
66  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "ctype", $request_wrapper->retrieve("ctype", $string_trafo));
67  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "cname", $request_wrapper->retrieve("cname", $string_trafo));
68  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "slot_id", $request_wrapper->retrieve("slot_id", $string_trafo));
69  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "plugin_id", $request_wrapper->retrieve("plugin_id", $string_trafo));
70  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "pname", $request_wrapper->retrieve("pname", $string_trafo));
71 
72  $tpl->setTitle($lng->txt("cmps_plugin") . ": " . $request_wrapper->retrieve("pname", $string_trafo));
73  $tpl->setDescription("");
74 
75  $ilTabs->clearTargets();
76 
77  if ($request_wrapper->retrieve("plugin_id", $string_trafo)) {
78  $ilTabs->setBackTarget(
79  $lng->txt("cmps_plugin"),
80  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "showPlugin")
81  );
82  } else {
83  $ilTabs->setBackTarget(
84  $lng->txt("cmps_plugins"),
85  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "listPlugins")
86  );
87  }
88 
89  $this->performCommand($ilCtrl->getCmd("configure"));
90  }
performCommand(string $cmd)
global $DIC
Definition: shib_login.php:25
global $lng
Definition: privfeed.php:32
+ Here is the call graph for this function:

◆ getPluginObject()

ilPluginConfigGUI::getPluginObject ( )
final

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

References $plugin_object.

45  : ?ilPlugin
46  {
47  return $this->plugin_object;
48  }

◆ performCommand()

ilPluginConfigGUI::performCommand ( string  $cmd)
abstract

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ setPluginObject()

ilPluginConfigGUI::setPluginObject ( ilPlugin  $a_val)
final

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

40  : void
41  {
42  $this->plugin_object = $a_val;
43  }

Field Documentation

◆ $plugin_object

ilPlugin ilPluginConfigGUI::$plugin_object = null
protected

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

Referenced by getPluginObject().


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