ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilSettingsTemplateTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Table/classes/class.ilTable2GUI.php");
5 
15 {
16 
20  function __construct($a_parent_obj, $a_parent_cmd, $a_type)
21  {
22  global $ilCtrl, $lng, $ilAccess, $lng;
23 
24  $this->setId("admsettemp".$a_type);
25 
26  parent::__construct($a_parent_obj, $a_parent_cmd);
27 
28  include_once("./Services/Administration/classes/class.ilSettingsTemplate.php");
30  $this->setTitle($lng->txt("adm_settings_templates")." - ".
31  $lng->txt("obj_".$a_type));
32 
33  $this->addColumn("", "", "1", true);
34  $this->addColumn($this->lng->txt("title"), "title");
35  $this->addColumn($this->lng->txt("description"));
36  $this->addColumn($this->lng->txt("actions"));
37 
38  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
39  $this->setRowTemplate("tpl.settings_template_row.html",
40  "Services/Administration");
41 
42  $this->addMultiCommand("confirmSettingsTemplateDeletion", $lng->txt("delete"));
43  //$this->addCommandButton("", $lng->txt(""));
44  }
45 
49  protected function fillRow($a_set)
50  {
51  global $lng, $ilCtrl;
52 
53  $ilCtrl->setParameter($this->parent_obj, "templ_id", $a_set["id"]);
54  $this->tpl->setVariable("VAL_ID", $a_set["id"]);
55  $this->tpl->setVariable("VAL_TITLE", $a_set["title"]);
56  $this->tpl->setVariable("VAL_DESCRIPTION", $a_set["description"]);
57  $this->tpl->setVariable("TXT_EDIT", $lng->txt("edit"));
58  $this->tpl->setVariable("HREF_EDIT",
59  $ilCtrl->getLinkTarget($this->parent_obj, "editSettingsTemplate"));
60  $ilCtrl->setParameter($this->parent_obj, "templ_id", "");
61  }
62 
63 }
64 ?>