19 declare(strict_types=1);
37 $f = $DIC->ui()->factory();
38 $r = $DIC->ui()->renderer();
41 'l1' =>
$f->table()->column()->link(
"a link column")
45 [
'l1' =>
$f->link()->standard(
'ILIAS Homepage',
'http://www.ilias.de')],
46 [
'l1' =>
$f->link()->standard(
'ILIAS Homepage',
'http://www.ilias.de')],
50 $data_retrieval =
new class ($dummy_records) implements
I\DataRetrieval {
51 protected array $records;
55 $this->records = $dummy_records;
58 public function getRows(
59 I\DataRowBuilder $row_builder,
60 array $visible_column_ids,
64 ?array $additional_parameters
66 foreach ($this->records as $idx => $record) {
68 yield $row_builder->buildDataRow($row_id, $record);
72 public function getTotalRowCount(
74 ?array $additional_parameters
76 return count($this->records);
80 $table =
$f->table()->data($data_retrieval,
'Link Columns', $columns)
81 ->withRequest($DIC->http()->request());
82 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.