ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilDashObjectsTableRenderer.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
9{
10 protected $parent_gui;
11
16 public function __construct($parent_gui)
17 {
18 $this->parent_gui = $parent_gui;
19 }
20
21
25 public function render(array $groupedItems) : string
26 {
27 $cnt = 0;
28 $html = "";
29 foreach ($groupedItems as $group) {
30 $items = $group->getItems();
31 if (count($items) > 0) {
32 $table = new ilDashObjectsTableGUI($this->parent_gui, "render", $cnt++);
33 $table->setTitle($group->getLabel());
34 $table->setData($group->getItems());
35 $html .= $table->getHTML();
36 }
37 }
38 return $html;
39 }
40}
An exception for terminatinating execution or to throw for unit testing.
Classic table for rep object lists, including checkbox.
Dashboard objects table renderer.
render(array $groupedItems)
@inheritDoc