ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilDashObjectsTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11{
15 protected $ctrl;
16
20 protected $lng;
21
25 public function __construct($a_parent_obj, $a_parent_cmd, $sub_id)
26 {
27 global $DIC;
28
29 $this->id = "dash_obj_" . $sub_id;
30 $this->lng = $DIC->language();
31 $this->ctrl = $DIC->ctrl();
32
33 parent::__construct($a_parent_obj, $a_parent_cmd);
34
35 //$this->setData($this->getItems());
36 $this->setTitle($this->lng->txt(""));
37
38 $this->addColumn("", "", "", true);
39
40 $this->setEnableNumInfo(false);
41 $this->setEnableHeader(false);
42
43 //$this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
44 $this->setRowTemplate("tpl.dash_obj_row.html", "Services/Dashboard");
45
46 //$this->addMultiCommand("", $this->lng->txt(""));
47 //$this->addCommandButton("", $this->lng->txt(""));
48 $this->setLimit(9999);
49 }
50
56 /*
57 protected function getItems()
58 {
59 $items = [];
60
61 return $items;
62 }*/
63
67 protected function fillRow($a_set)
68 {
72
73 $tpl->setVariable("ID", $a_set["ref_id"]);
74 $tpl->setVariable("ICON", ilObject::_getIcon($a_set["obj_id"]));
75 $tpl->setVariable("TITLE", $a_set["title"]);
76 }
77}
An exception for terminatinating execution or to throw for unit testing.
Classic table for rep object lists, including checkbox.
__construct($a_parent_obj, $a_parent_cmd, $sub_id)
Constructor.
Class ilTable2GUI.
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setEnableNumInfo($a_val)
Set enable num info.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46