19declare(strict_types=1);
38 $r =
$DIC[
'ui.renderer'];
41 't1' =>
$f->table()->column()->text(
"some text")
45 [
't1' =>
'this is some text'],
46 [
't1' =>
'this is some other text']
49 $data_retrieval =
new class ($dummy_records) implements
I\DataRetrieval {
50 protected array $records;
54 $this->records = $dummy_records;
57 public function getRows(
58 I\DataRowBuilder $row_builder,
59 array $visible_column_ids,
63 ?array $additional_parameters
65 foreach ($this->records as $idx => $record) {
67 yield $row_builder->buildDataRow($row_id, $record);
71 public function getTotalRowCount(
73 ?array $additional_parameters
75 return count($this->records);
79 $table =
$f->table()->data($data_retrieval,
'Text Columns', $columns)
80 ->withRequest(
$DIC->http()->request());
81 return $r->render($table);
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
__construct()
Constructor setup ILIAS global object @access public.