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 }
getViewControls()
Get view controls to be shown in the header of the table.
withData(array $records)
Fill a recordset into the table.
withEnvironment(array $environment)
Add a list of additional things the mapping-closure needs for processing.
A component is the most general form of an entity in the UI.
Definition: Component.php:13
$records
Definition: simple_test.php:22
withTitle($title)
Get a table like this with title $title.
getTitle()
Get the title of the table.
withViewControls(array $view_controls)
Get a table like this with these view controls.
This describes a Presentation Table.
Definition: Presentation.php:9
getRowMapping()
Get the closure to construct row-entries with.
getData()
Get the recordset of this 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.