ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
39function base()
40{
41 global $DIC;
42
43 $data_retrieval = new class () implements DataRetrieval {
44 public function getRows(
45 DataRowBuilder $row_builder,
46 array $visible_column_ids,
48 Order $order,
49 mixed $additional_viewcontrol_data,
50 mixed $filter_data,
51 mixed $additional_parameters
52 ): \Generator {
53 global $DIC;
54 yield $row_builder->buildDataRow('dummy', [
55 'object' => $DIC->ui()->factory()->breadcrumbs([
56 $DIC->ui()->factory()->link()->standard('Repository', '/'),
57 $DIC->ui()->factory()->link()->standard('Course', '/login.php'),
58 ]),
59 ]);
60 }
61
62 public function getTotalRowCount(
63 mixed $additional_viewcontrol_data,
64 mixed $filter_data,
65 mixed $additional_parameters
66 ): ?int {
67 return 1;
68 }
69 };
70
71 $columns = [
72 'object' => $DIC->ui()->factory()->table()->column()->breadcrumb('Object'),
73 ];
74
75 $table = $DIC->ui()->factory()->table()->data($data_retrieval, 'Test Breadcrumb Column', $columns)
76 ->withRequest($DIC->http()->request());
77
78 return $DIC->ui()->renderer()->render($table);
79}
Both the subject and the direction need to be specified when expressing an order.
Definition: Order.php:29
A simple class to express a naive range of whole positive numbers.
Definition: Range.php:29
buildDataRow(string $id, array $record)