ILIAS  release_4-4 Revision
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 ?>
static getAllSettingsTemplates($a_type)
Get all settings templates of type.
setId($a_val)
Set id.
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
global $lng
Definition: privfeed.php:40
setFormAction($a_form_action)
Set Form action parameter.
__construct($a_parent_obj, $a_parent_cmd, $a_type)
Constructor.