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
4include_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 {
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}
An exception for terminatinating execution or to throw for unit testing.
__construct($a_use_icons)
Constructor.
Class ilTable2GUI.
setEnableHeader($a_enableheader)
Set Enable 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.
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.
disable($a_module_name)
diesables particular modules of table
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7