3 declare(strict_types=1);
21 $f = $DIC->ui()->factory();
22 $r = $DIC->ui()->renderer();
25 'l1' =>
$f->table()->column()->link(
"a link column")
29 [
'l1' =>
$f->link()->standard(
'ILIAS Homepage',
'http://www.ilias.de')],
30 [
'l1' =>
$f->link()->standard(
'ILIAS Homepage',
'http://www.ilias.de')],
34 $data_retrieval =
new class ($dummy_records) implements
I\DataRetrieval {
35 protected array $records;
39 $this->records = $dummy_records;
42 public function getRows(
43 I\DataRowBuilder $row_builder,
44 array $visible_column_ids,
48 ?array $additional_parameters
50 foreach ($this->records as $idx => $record) {
52 yield $row_builder->buildDataRow($row_id, $record);
56 public function getTotalRowCount(
58 ?array $additional_parameters
60 return count($this->records);
64 $table =
$f->table()->data(
'Link Columns', $columns, $data_retrieval)
65 ->withRequest($DIC->http()->request());
66 return $r->render($table);
Both the subject and the direction need to be specified when expressing an order. ...
__construct()
Constructor setup ILIAS global object public.
base()
expected output: > ILIAS shows the rendered Component.
A simple class to express a naive range of whole positive numbers.