ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilConfirmationTableGUI.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 {
19  protected $access;
20 
21 
25  public function __construct($a_use_icons)
26  {
27  global $DIC;
28 
29  $this->ctrl = $DIC->ctrl();
30  $this->lng = $DIC->language();
31  $this->access = $DIC->access();
32  $ilCtrl = $DIC->ctrl();
33  $lng = $DIC->language();
34  $ilAccess = $DIC->access();
35  $lng = $DIC->language();
36 
37  $this->use_icons = $a_use_icons;
38 
39  parent::__construct(null, "");
40  $this->setTitle($lng->txt(""));
41  $this->setLimit(9999);
42 
43  if ($this->use_icons) {
44  $this->addColumn($this->lng->txt("type"), "", "1");
45  }
46  $this->addColumn($this->lng->txt("title"));
47 
48  $this->setEnableHeader(true);
49  $this->setRowTemplate("tpl.confirmation_row.html", "Services/Utilities");
50  $this->disable("footer");
51  $this->setEnableTitle(true);
52  }
53 
57  protected function fillRow($item)
58  {
59  $lng = $this->lng;
60 
61  if ($this->use_icons) {
62  if ($item["img"] != "") {
63  $this->tpl->setCurrentBlock("img_cell");
64  $this->tpl->setVariable("IMG_ITEM", $item["img"]);
65  $this->tpl->setVariable("ALT_ITEM", $item["alt"]);
66  $this->tpl->parseCurrentBlock();
67  } else {
68  $this->tpl->touchBlock("blank_cell");
69  }
70  }
71  $this->tpl->setVariable("TXT_ITEM", $item["text"]);
72  if (isset($item['var']) && $item['var']) {
73  $this->tpl->setVariable('VAR_ITEM', $item['var']);
74  $this->tpl->setVariable('ID', $item['id']);
75  }
76  }
77 }
global $DIC
Definition: saml.php:7
__construct($a_use_icons)
Constructor.
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
disable($a_module_name)
diesables particular modules of table
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
setLimit($a_limit=0, $a_default_limit=0)