3 declare(strict_types=1);
15 $f = $DIC[
'ui.factory'];
16 $r = $DIC[
'ui.renderer'];
17 $df = new \ILIAS\Data\Factory();
20 'd1' =>
$f->table()->column()->timeSpan(
"German Long", $df->dateFormat()->germanLong()),
21 'd2' =>
$f->table()->column()->timeSpan(
"German Short", $df->dateFormat()->germanShort())
25 public function getRows(
26 I\DataRowBuilder $row_builder,
27 array $visible_column_ids,
31 ?array $additional_parameters
34 $dat = new \DateTimeImmutable();
35 $dat2 = $dat->add(
new \DateInterval(
'PT10H30S'));
37 'd1' => [$dat, $dat2],
38 'd2' => [$dat, $dat2],
40 yield $row_builder->buildDataRow($row_id, $record);
43 public function getTotalRowCount(
45 ?array $additional_parameters
51 $table =
$f->table()->data(
'TimeSpan Columns', $columns, $data_retrieval)
52 ->withRequest($DIC->http()->request());
53 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. ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A simple class to express a range of whole positive numbers.