ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Presentation.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\UI\Component\Table;
22 
24 use Closure;
27 
32 {
56  public function withRowMapping(Closure $row_mapping): Presentation;
57 
61  public function getRowMapping(): Closure;
62 
69  public function withEnvironment(array $environment): Presentation;
70 
76  public function getEnvironment(): array;
77 
84  public function withData(array $records): Presentation;
85 
92  public function getData(): array;
93 }
withData(array $records)
Fill a recordset into the table.
withEnvironment(array $environment)
Add a list of additional things the mapping-closure needs for processing.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait HasViewControls
Trait for panels supporting view controls.
withRowMapping(Closure $row_mapping)
Get a table like this with the closure $row_mapping.
This describes a Presentation Table.
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.