ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 $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  }
74 
75  abstract public function performCommand($cmd);
76 }
setPluginObject($a_val)
Set plugin object.
global $DIC
Definition: saml.php:7
$_GET["client_id"]
$tpl
Definition: ilias.php:10
global $ilCtrl
Definition: ilias.php:18
$lng
Parent class for all plugin config gui classes.
getPluginObject()
Get plugin object.
executeCommand()
Execute command.