ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LinkListing.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 
29 class 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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...