ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LinkListing.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
29class LinkListing extends Column implements C\LinkListing
30{
31 public function format($value): string|Component
32 {
33 $listing = $this->toArray($value);
34 $this->checkArgListElements("value", $listing, [Ordered::class, Unordered::class]);
35 $listing_items = $value->getItems();
36 $this->checkArgListElements("list items", $listing_items, Standard::class);
37 return $value;
38 }
39
40 public function getOrderingLabels(): array
41 {
42 return [
43 $this->asc_label ?? $this->getTitle() . self::SEPERATOR . $this->lng->txt('order_option_alphabetical_ascending'),
44 $this->desc_label ?? $this->getTitle() . self::SEPERATOR . $this->lng->txt('order_option_alphabetical_descending')
45 ];
46 }
47}
A component is the most general form of an entity in the UI.
Definition: Component.php:28