ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Presentation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use 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}
Interface to be extended by components that have the possibility to bind to Javascript.
This describes a Presentation Table.
withEnvironment(array $environment)
Add a list of additional things the mapping-closure needs for processing.
getData()
Get the recordset of this table.
getEnvironment()
Get an array of additionally needed elements to build a data-entry.
withData(array $records)
Fill a recordset into the table.
withRowMapping(Closure $row_mapping)
Get a table like this with the closure $row_mapping.
getRowMapping()
Get the closure to construct row-entries with.
Trait for adding view controls to a component.
trait HasViewControls
Trait for panels supporting view controls.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.