ILIAS  Release_5_0_x_branch Revision 61816
 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", "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  {
58  $ilTabs->setBackTarget(
59  $lng->txt("cmps_plugin"),
60  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "showPlugin")
61  );
62  }
63  else
64  {
65  $ilTabs->setBackTarget(
66  $lng->txt("cmps_plugins"),
67  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "listPlugins")
68  );
69  }
70 
71  $this->performCommand($ilCtrl->getCmd("configure"));
72 
73  }
74 
75  abstract function performCommand($cmd);
76 }
77 ?>