ILIAS  release_8 Revision v8.24
class.ilConfirmationTableGUI.php
Go to the documentation of this file.
1<?php
2
25{
27 protected bool $use_icons;
28
29 public function __construct(bool $a_use_icons)
30 {
32 global $DIC;
33
34 $this->ctrl = $DIC->ctrl();
35 $this->lng = $DIC->language();
36 $this->access = $DIC->access();
37 $lng = $DIC->language();
38
39 $this->use_icons = $a_use_icons;
40
41 parent::__construct(null, "");
42 $this->setTitle($lng->txt(""));
43 $this->setLimit(9999);
44
45 if ($this->use_icons) {
46 $this->addColumn($this->lng->txt("type"), "", "1");
47 }
48 $this->addColumn($this->lng->txt("title"));
49
50 $this->setEnableHeader(true);
51 $this->setRowTemplate("tpl.confirmation_row.html", "Services/Utilities");
52 $this->disable("footer");
53 $this->setEnableTitle(true);
54 }
55
56 protected function fillRow(array $a_set): void
57 {
58 if ($this->use_icons) {
59 if ($a_set["img"] != "") {
60 $this->tpl->setCurrentBlock("img_cell");
61 $this->tpl->setVariable("IMG_ITEM", $a_set["img"]);
62 $this->tpl->setVariable("ALT_ITEM", $a_set["alt"]);
63 $this->tpl->parseCurrentBlock();
64 } else {
65 $this->tpl->touchBlock("blank_cell");
66 }
67 }
68 $this->tpl->setVariable("TXT_ITEM", $a_set["text"]);
69 if (isset($a_set['var']) && $a_set['var']) {
70 $this->tpl->setVariable('VAR_ITEM', $a_set['var']);
71 $this->tpl->setVariable('ID', $a_set['id']);
72 }
73 }
74}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
fillRow(array $a_set)
Standard Version of Fill Row.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(?object $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setEnableTitle(bool $a_enabletitle)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setEnableHeader(bool $a_enableheader)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
ilLanguage $lng
disable(string $a_module_name)
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc