ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
LinkListing.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Table\Column
;
22
23
use
ILIAS\UI\Component\Table\Column
as
C
;
24
use
ILIAS\UI\Component\Link\Standard
;
25
use
ILIAS\UI\Component\Listing\Ordered
;
26
use
ILIAS\UI\Component\Listing\Unordered
;
27
use
ILIAS\UI\Component\Component
;
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
}
ILIAS\UI\Implementation\Component\Table\Column\LinkListing\getOrderingLabels
getOrderingLabels()
Definition:
LinkListing.php:40
ILIAS\UI\Implementation\Component\Table\Column
Definition:
Boolean.php:21
ILIAS\UI\Implementation\Component\Table\Column\Column\getTitle
getTitle()
Definition:
Column.php:48
ILIAS\UI\Component
Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\UI\Implementation\Component\Table\Column\Column
Definition:
Column.php:28
Unordered
Standard
ILIAS\UI\Implementation\Component\Table\Column\LinkListing
Definition:
LinkListing.php:29
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
Ordered
ILIAS\UI\Component\Table\Column
Definition:
Boolean.php:21
ILIAS\UI\Implementation\Component\Table\Column\LinkListing\format
format($value)
Definition:
LinkListing.php:31
components
ILIAS
UI
src
Implementation
Component
Table
Column
LinkListing.php
Generated on Sun Aug 31 2025 23:04:08 for ILIAS by
1.8.13 (using
Doxyfile
)