ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilPluginConfigGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
11 abstract class ilPluginConfigGUI
12 {
13  protected $plugin_object = null;
14 
20  final public function setPluginObject($a_val)
21  {
22  $this->plugin_object = $a_val;
23  }
24 
30  final public function getPluginObject()
31  {
32  return $this->plugin_object;
33  }
34 
41  public function executeCommand()
42  {
43  global $ilCtrl, $ilTabs, $lng, $tpl;
44 
45  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "ctype", $_GET["ctype"]);
46  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "cname", $_GET["cname"]);
47  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "slot_id", $_GET["slot_id"]);
48  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "plugin_id", $_GET["plugin_id"]);
49  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "pname", $_GET["pname"]);
50 
51  $tpl->setTitle($lng->txt("cmps_plugin") . ": " . $_GET["pname"]);
52  $tpl->setDescription("");
53 
54  $ilTabs->clearTargets();
55 
56  if ($_GET["plugin_id"]) {
57  $ilTabs->setBackTarget(
58  $lng->txt("cmps_plugin"),
59  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "showPlugin")
60  );
61  } else {
62  $ilTabs->setBackTarget(
63  $lng->txt("cmps_plugins"),
64  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "listPlugins")
65  );
66  }
67 
68  $this->performCommand($ilCtrl->getCmd("configure"));
69  }
70 
71  abstract public function performCommand($cmd);
72 }
setPluginObject($a_val)
Set plugin object.
$_GET["client_id"]
$tpl
Definition: ilias.php:10
global $ilCtrl
Definition: ilias.php:18
Parent class for all plugin config gui classes.
global $lng
Definition: privfeed.php:17
getPluginObject()
Get plugin object.
executeCommand()
Execute command.