3 declare(strict_types=1);
15 $f = $DIC[
'ui.factory'];
16 $r = $DIC[
'ui.renderer'];
17 $df = new \ILIAS\Data\Factory();
18 $current_user = $DIC[
'ilUser'];
21 'd1' =>
$f->table()->column()->date(
"German Long", $df->dateFormat()->germanLong()),
22 'd2' =>
$f->table()->column()->date(
"Time Only", $df->dateFormat()->custom()->hours24()->colon()->minutes()->get()),
23 'd3' =>
$f->table()->column()->date(
"User Preference", $current_user->getDateFormat()),
26 $data_retrieval =
new class () implements
I\DataRetrieval {
27 public function getRows(
28 I\DataRowBuilder $row_builder,
29 array $visible_column_ids,
33 ?array $additional_parameters
36 $dat = new \DateTimeImmutable();
42 yield $row_builder->buildDataRow($row_id, $record);
45 public function getTotalRowCount(
47 ?array $additional_parameters
53 $table =
$f->table()->data(
'Date Columns', $columns, $data_retrieval)
54 ->withRequest($DIC->http()->request());
55 return $r->render($table);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Both the subject and the direction need to be specified when expressing an order. ...
A simple class to express a range of whole positive numbers.