19 declare(strict_types=1);
37 $f = $DIC[
'ui.factory'];
38 $r = $DIC[
'ui.renderer'];
39 $df = new \ILIAS\Data\Factory();
42 'd1' =>
$f->table()->column()->timeSpan(
"German Long", $df->dateFormat()->germanLong()),
43 'd2' =>
$f->table()->column()->timeSpan(
"German Short", $df->dateFormat()->germanShort())
46 $data_retrieval =
new class () implements
I\DataRetrieval {
47 public function getRows(
48 I\DataRowBuilder $row_builder,
49 array $visible_column_ids,
53 ?array $additional_parameters
56 $dat = new \DateTimeImmutable();
59 'd1' => [$dat, $dat2],
60 'd2' => [$dat, $dat2],
62 yield $row_builder->buildDataRow($row_id, $record);
65 public function getTotalRowCount(
67 ?array $additional_parameters
73 $table =
$f->table()->data($data_retrieval,
'TimeSpan Columns', $columns)
74 ->withRequest($DIC->http()->request());
75 return $r->render($table);
Both the subject and the direction need to be specified when expressing an order. ...
base()
expected output: > ILIAS shows the rendered Component.
A simple class to express a naive range of whole positive numbers.