ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 {
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  $this->tpl->setVariable("VAR_ITEM", $item["var"]);
65  $this->tpl->setVariable("ID", $item["id"]);
66  }
67 
68 }
69 ?>