ILIAS  Release_4_1_x_branch Revision 61804
 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  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($lng->txt("cmps_plugin_slot"),
55  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "showPluginSlot"));
56 
57  $this->performCommand($ilCtrl->getCmd("configure"));
58 
59  }
60 
61  abstract function performCommand($cmd);
62 }
63 ?>