ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Link.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
27 class Link extends Column implements C\Link
28 {
29  public function format($value): string|Component
30  {
31  $this->checkArgInstanceOf('value', $value, Standard::class);
32  return $value;
33  }
37  public function getOrderingLabels(): array
38  {
39  return [
40  $this->asc_label ?? $this->getTitle() . self::SEPERATOR . $this->lng->txt('order_option_alphabetical_ascending'),
41  $this->desc_label ?? $this->getTitle() . self::SEPERATOR . $this->lng->txt('order_option_alphabetical_descending')
42  ];
43  }
44 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...