ILIAS  release_7 Revision v7.30-3-g800a261c036
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  {
69  $tpl = $this->tpl;
71  $lng = $this->lng;
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 }
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
Classic table for rep object lists, including checkbox.
setEnableNumInfo($a_val)
Set enable num info.
__construct($a_parent_obj, $a_parent_cmd, $sub_id)
Constructor.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
global $DIC
Definition: goto.php:24
setRowTemplate($a_template, $a_template_dir="")
Set row template.
__construct(Container $dic, ilPlugin $plugin)
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.
setLimit($a_limit=0, $a_default_limit=0)