ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
disabled.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
39function disabled()
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 yield $row_builder->buildDataRow('dummy', [
54 'object' => $DIC->ui()->factory()->breadcrumbs([
55 $DIC->ui()->factory()->link()->standard('Repository', '/'),
56 $DIC->ui()->factory()->link()->standard('Course', '/login.php')->withDisabled(true),
57 ]),
58 ]);
59 }
60
61 public function getTotalRowCount(
62 ?array $filter_data,
63 ?array $additional_parameters
64 ): ?int {
65 return 1;
66 }
67 };
68
69 $columns = [
70 'object' => $DIC->ui()->factory()->table()->column()->breadcrumb('Object'),
71 ];
72
73 $table = $DIC->ui()->factory()->table()->data($data_retrieval, 'Test disabled Breadcrumb Column', $columns)
74 ->withRequest($DIC->http()->request());
75
76 return $DIC->ui()->renderer()->render($table);
77}
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)
global $DIC
Definition: shib_login.php:26