ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDashObjectsTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function __construct(
24 object $a_parent_obj,
25 string $a_parent_cmd,
26 int $sub_id
27 ) {
28 global $DIC;
29
30 $this->id = 'dash_obj_' . $sub_id;
31 $this->lng = $DIC->language();
32 $this->ctrl = $DIC->ctrl();
33
34 parent::__construct($a_parent_obj, $a_parent_cmd);
35
36 $this->setTitle($this->lng->txt(''));
37
38 $this->addColumn('', '', '', true);
39
40 $this->setEnableNumInfo(false);
41 $this->setEnableHeader(false);
42
43 $this->setRowTemplate('tpl.dash_obj_row.html', 'components/ILIAS/Dashboard');
44
45 $this->setLimit(9999);
46 }
47
48 protected function fillRow(array $a_set): void
49 {
51 $tpl->setVariable('ID', $a_set['ref_id']);
52 $tpl->setVariable('ICON', ilObject::_getIcon((int) $a_set['obj_id']));
53 $tpl->setVariable('TITLE', $a_set['title']);
54 }
55}
fillRow(array $a_set)
Standard Version of Fill 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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26