107 $clone = clone $this;
126 $clone = clone $this;
144 $clone = clone $this;
getViewControls()
Get view controls to be shown in the header of the table.ILIAS[]
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
withRowMapping(\Closure $row_mapping)
Get a table like this with the closure $row_mapping.This closure is called by the renderer upon build...
__construct($title, array $view_controls, \Closure $row_mapping, SignalGeneratorInterface $signal_generator)
withViewControls(array $view_controls)
Get a table like this with these view controls.
withTitle($title)
Get a table like this with title $title.
withData(array $records)
Fill a recordset into the table.All elements in $records MUST be processable by the mapping-closure...
getData()
Get the recordset of this table.All elements in $records MUST be processable by the mapping-closure...
This describes a Presentation Table.
withEnvironment(array $environment)
Add a list of additional things the mapping-closure needs for processing.These can be virtually anyth...
getTitle()
Get the title of the table.string
getEnvironment()
Get an array of additionally needed elements to build a data-entry.array<string,mixed> ...
getRowMapping()
Get the closure to construct row-entries with.