ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Presentation.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
5
10{
11
18 public function withTitle($title);
19
25 public function getTitle();
26
33 public function withViewControls(array $view_controls);
34
40 public function getViewControls();
41
68 public function withRowMapping(\Closure $row_mapping);
69
70
76 public function getRowMapping();
77
85 public function withEnvironment(array $environment);
86
92 public function getEnvironment();
93
101 public function withData(array $records);
102
109 public function getData();
110}
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
This describes a Presentation Table.
withViewControls(array $view_controls)
Get a table like this with these view controls.
withTitle($title)
Get a table like this with title $title.
withEnvironment(array $environment)
Add a list of additional things the mapping-closure needs for processing.
getData()
Get the recordset of this table.
getTitle()
Get the title of the table.
getEnvironment()
Get an array of additionally needed elements to build a data-entry.
withRowMapping(\Closure $row_mapping)
Get a table like this with the closure $row_mapping.
withData(array $records)
Fill a recordset into the table.
getRowMapping()
Get the closure to construct row-entries with.
getViewControls()
Get view controls to be shown in the header of the table.
$records
Definition: simple_test.php:22