ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 function setPluginObject($a_val)
21  {
22  $this->plugin_object = $a_val;
23  }
24 
30  public final function getPluginObject()
31  {
32  return $this->plugin_object;
33  }
34 
41  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", "pname", $_GET["pname"]);
49 
50  $tpl->setTitle($lng->txt("cmps_plugin").": ".$_GET["pname"]);
51  $tpl->setDescription("");
52 
53  $ilTabs->clearTargets();
54  $ilTabs->setBackTarget(
55  $lng->txt("cmps_plugin_slot"),
56  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "showPluginSlot")
57  );
58 
59  $this->performCommand($ilCtrl->getCmd("configure"));
60 
61  }
62 
63  abstract function performCommand($cmd);
64 }
65 ?>