ILIAS  release_8 Revision v8.24
Presentation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use Closure;
26
31{
55 public function withRowMapping(Closure $row_mapping): Presentation;
56
60 public function getRowMapping(): Closure;
61
68 public function withEnvironment(array $environment): Presentation;
69
75 public function getEnvironment(): array;
76
83 public function withData(array $records): Presentation;
84
91 public function getData(): array;
92}
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait HasViewControls
Trait for panels supporting view controls.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.