ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
4include_once("./Services/Table/classes/class.ilTable2GUI.php");
5
15{
16
20 function __construct($a_use_icons)
21 {
22 global $ilCtrl, $lng, $ilAccess, $lng;
23
24 $this->use_icons = $a_use_icons;
25
26 parent::__construct(null, "");
27 $this->setTitle($lng->txt(""));
28 $this->setLimit(9999);
29
30 if ($this->use_icons)
31 {
32 $this->addColumn($this->lng->txt("type"), "", "1");
33 }
34 $this->addColumn($this->lng->txt("title"));
35
36 $this->setEnableHeader(true);
37 $this->setRowTemplate("tpl.confirmation_row.html", "Services/Utilities");
38 $this->disable("footer");
39 $this->setEnableTitle(true);
40 }
41
45 protected function fillRow($item)
46 {
47 global $lng;
48
49 if ($this->use_icons)
50 {
51 if ($item["img"] != "")
52 {
53 $this->tpl->setCurrentBlock("img_cell");
54 $this->tpl->setVariable("IMG_ITEM", $item["img"]);
55 $this->tpl->setVariable("ALT_ITEM", $item["alt"]);
56 $this->tpl->parseCurrentBlock();
57 }
58 else
59 {
60 $this->tpl->touchBlock("blank_cell");
61 }
62 }
63 $this->tpl->setVariable("TXT_ITEM", $item["text"]);
64 if(isset($item['var']) && $item['var'])
65 {
66 $this->tpl->setVariable('VAR_ITEM', $item['var']);
67 $this->tpl->setVariable('ID', $item['id']);
68 }
69 }
70
71}
72?>
__construct($a_use_icons)
Constructor.
Class ilTable2GUI.
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
disable($a_module_name)
diesables particular modules of table
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40