ILIAS  release_8 Revision v8.24
class.ilDashObjectsTableGUI.php
Go to the documentation of this file.
1<?php
2
20{
21 public function __construct(
22 object $a_parent_obj,
23 string $a_parent_cmd,
24 int $sub_id
25 ) {
26 global $DIC;
27
28 $this->id = "dash_obj_" . $sub_id;
29 $this->lng = $DIC->language();
30 $this->ctrl = $DIC->ctrl();
31
32 parent::__construct($a_parent_obj, $a_parent_cmd);
33
34 $this->setTitle($this->lng->txt(""));
35
36 $this->addColumn("", "", "", true);
37
38 $this->setEnableNumInfo(false);
39 $this->setEnableHeader(false);
40
41 $this->setRowTemplate("tpl.dash_obj_row.html", "Services/Dashboard");
42
43 $this->setLimit(9999);
44 }
45
49 protected function fillRow(array $a_set): void
50 {
52 $tpl->setVariable("ID", $a_set["ref_id"]);
53 $tpl->setVariable("ICON", ilObject::_getIcon((int) $a_set["obj_id"]));
54 $tpl->setVariable("TITLE", $a_set["title"]);
55 }
56}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
fillRow(array $a_set)
Fill table row.
__construct(object $a_parent_obj, string $a_parent_cmd, int $sub_id)
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setEnableNumInfo(bool $a_val)
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.
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc