ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules 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 
20 abstract class ilPluginConfigGUI
21 {
22  protected $plugin_object = null;
23 
29  final public function setPluginObject($a_val)
30  {
31  $this->plugin_object = $a_val;
32  }
33 
39  final public function getPluginObject()
40  {
41  return $this->plugin_object;
42  }
43 
50  public function executeCommand()
51  {
52  global $DIC;
53  $ilCtrl = $DIC->ctrl();
54  $ilTabs = $DIC->tabs();
55  $lng = $DIC->language();
56  $tpl = $DIC['tpl'];
57 
58  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "ctype", $_GET["ctype"]);
59  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "cname", $_GET["cname"]);
60  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "slot_id", $_GET["slot_id"]);
61  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "plugin_id", $_GET["plugin_id"]);
62  $ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "pname", $_GET["pname"]);
63 
64  $tpl->setTitle($lng->txt("cmps_plugin") . ": " . $_GET["pname"]);
65  $tpl->setDescription("");
66 
67  $ilTabs->clearTargets();
68 
69  if ($_GET["plugin_id"]) {
70  $ilTabs->setBackTarget(
71  $lng->txt("cmps_plugin"),
72  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "showPlugin")
73  );
74  } else {
75  $ilTabs->setBackTarget(
76  $lng->txt("cmps_plugins"),
77  $ilCtrl->getLinkTargetByClass("ilobjcomponentsettingsgui", "listPlugins")
78  );
79  }
80 
81  $this->performCommand($ilCtrl->getCmd("configure"));
82  }
83 
84  abstract public function performCommand($cmd);
85 }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
setPluginObject($a_val)
Set plugin object.
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
$lng
Parent class for all plugin config gui classes.
getPluginObject()
Get plugin object.
$DIC
Definition: xapitoken.php:46
executeCommand()
Execute command.