3 declare(strict_types=1);
    15     $f = $DIC[
'ui.factory'];
    16     $r = $DIC[
'ui.renderer'];
    18     $dummy_records = [123, 45.66, 78.9876];
    21         'n1' => 
$f->table()->column()->number(
"some number"),
    22         'n2' => 
$f->table()->column()->number(
"with decimals")
    24         'n3' => 
$f->table()->column()->number(
"with unit before")
    25             ->withUnit(
'€', 
I\
Column\Number::UNIT_POSITION_FORE),
    26         'n4' => 
$f->table()->column()->number(
"with unit after")
    28             ->withUnit(
'Eur', 
I\
Column\Number::UNIT_POSITION_AFT),
    31     $data_retrieval = 
new class ($dummy_records) implements 
I\DataRetrieval {
    32         protected array $records;
    36             $this->records = $dummy_records;
    39         public function getRows(
    40             I\DataRowBuilder $row_builder,
    41             array $visible_column_ids,
    45             ?array $additional_parameters
    47             foreach ($this->records as $number) {
    49                 for ($i = 1; $i < 5; $i++) {
    50                     $record[
'n' . $i] = $number;
    52                 yield $row_builder->buildDataRow($row_id, $record);
    56         public function getTotalRowCount(
    58             ?array $additional_parameters
    60             return count($this->records);
    64     $table = 
$f->table()->data(
'Number Columns', $columns, $data_retrieval)
    65         ->withRequest($DIC->http()->request());
    66     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. ...
 
__construct()
Constructor setup ILIAS global object  public. 
 
A simple class to express a range of whole positive numbers.