ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
long_path.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
39function long_path()
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 $link = fn($x) => $DIC->ui()->factory()->link()->standard($x, '/');
55 $path = [
56 'Repository', 'Faculty', 'Department', 'Institute', 'Professorship',
57 'Learning Management Systems', 'Best Practice', 'ILIAS',
58 ];
59 $row = $row_builder->buildDataRow('dummy', [
60 'object' => $DIC->ui()->factory()->breadcrumbs(array_map($link, $path)),
61 'owner' => 'Max Mustermann',
62 ]);
63 yield $row;
64 yield $row;
65 }
66
67 public function getTotalRowCount(
68 mixed $additional_viewcontrol_data,
69 mixed $filter_data,
70 mixed $additional_parameters
71 ): ?int {
72 return 1;
73 }
74 };
75
76 $columns = [
77 'object' => $DIC->ui()->factory()->table()->column()->breadcrumb('Object'),
78 'owner' => $DIC->ui()->factory()->table()->column()->text('Owner'),
79 ];
80
81 $table = $DIC->ui()->factory()->table()->data($data_retrieval, 'Test long Breadcrumb Column', $columns)
82 ->withRequest($DIC->http()->request());
83
84 return $DIC->ui()->renderer()->render($table);
85}
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)
$path
Definition: ltiservices.php:30
global $DIC
Definition: shib_login.php:26