ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ?array $filter_data,
50 ?array $additional_parameters
51 ): \Generator {
52 global $DIC;
53 $link = fn($x) => $DIC->ui()->factory()->link()->standard($x, '/');
54 $path = [
55 'Repository', 'Faculty', 'Department', 'Institute', 'Professorship',
56 'Learning Management Systems', 'Best Practice', 'ILIAS',
57 ];
58 $row = $row_builder->buildDataRow('dummy', [
59 'object' => $DIC->ui()->factory()->breadcrumbs(array_map($link, $path)),
60 'owner' => 'Max Mustermann',
61 ]);
62 yield $row;
63 yield $row;
64 }
65
66 public function getTotalRowCount(
67 ?array $filter_data,
68 ?array $additional_parameters
69 ): ?int {
70 return 1;
71 }
72 };
73
74 $columns = [
75 'object' => $DIC->ui()->factory()->table()->column()->breadcrumb('Object'),
76 'owner' => $DIC->ui()->factory()->table()->column()->text('Owner'),
77 ];
78
79 $table = $DIC->ui()->factory()->table()->data($data_retrieval, 'Test long Breadcrumb Column', $columns)
80 ->withRequest($DIC->http()->request());
81
82 return $DIC->ui()->renderer()->render($table);
83}
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