4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
29 $this->ctrl = $DIC->ctrl();
30 $this->lng = $DIC->language();
31 $this->access = $DIC->access();
33 $lng = $DIC->language();
34 $ilAccess = $DIC->access();
35 $lng = $DIC->language();
37 $this->use_icons = $a_use_icons;
39 parent::__construct(null,
"");
43 if ($this->use_icons) {
44 $this->
addColumn($this->lng->txt(
"type"),
"",
"1");
46 $this->
addColumn($this->lng->txt(
"title"));
49 $this->
setRowTemplate(
"tpl.confirmation_row.html",
"Services/Utilities");
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();
68 $this->tpl->touchBlock(
"blank_cell");
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']);
__construct($a_use_icons)
Constructor.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
fillRow($item)
Fill table row.
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)