3 declare(strict_types=1);
20 $f = $DIC->ui()->factory();
21 $r = $DIC->ui()->renderer();
24 'l1' =>
$f->table()->column()->linkListing(
"a link list column")
27 $some_link =
$f->link()->standard(
'ILIAS Homepage',
'http://www.ilias.de');
28 $some_linklisting =
$f->listing()->unordered([$some_link, $some_link, $some_link]);
31 [
'l1' => $some_linklisting],
32 [
'l1' => $some_linklisting]
35 $data_retrieval =
new class ($dummy_records) implements
I\DataRetrieval {
36 protected array $records;
40 $this->records = $dummy_records;
43 public function getRows(
44 I\DataRowBuilder $row_builder,
45 array $visible_column_ids,
49 ?array $additional_parameters
51 foreach ($this->records as $idx => $record) {
53 yield $row_builder->buildDataRow($row_id, $record);
57 public function getTotalRowCount(
59 ?array $additional_parameters
61 return count($this->records);
65 $table =
$f->table()->data(
'Link List Columns', $columns, $data_retrieval)
66 ->withRequest($DIC->http()->request());
67 return $r->render($table);
base()
expected output: > ILIAS shows the rendered Component.
Both the subject and the direction need to be specified when expressing an order. ...
__construct()
Constructor setup ILIAS global object public.
A simple class to express a naive range of whole positive numbers.