ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
Date.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\Data\DateFormat\DateFormat
;
25
26
class
Date
extends
Column
implements C\Date
27
{
28
public
function
__construct
(
29
\
ilLanguage
$lng
,
30
string
$title,
31
protected
DateFormat
$format
32
) {
33
parent::__construct
($lng, $title);
34
}
35
36
public
function
getFormat
():
DateFormat
37
{
38
return
$this->format;
39
}
40
41
public
function
format
($value): string
42
{
43
$this->checkArgInstanceOf(
'value'
, $value, \DateTimeImmutable::class);
44
return
$value->format($this->
getFormat
()->
toString
());
45
}
46
50
public
function
getOrderingLabels
(): array
51
{
52
return
[
53
$this->asc_label ?? $this->
getTitle
() . self::SEPERATOR . $this->
lng
->txt(
'order_option_chronological_ascending'
),
54
$this->desc_label ?? $this->
getTitle
() . self::SEPERATOR . $this->
lng
->txt(
'order_option_chronological_descending'
)
55
];
56
}
57
}
ILIAS\Export\ImportHandler\File\Path\Comparison\toString
Definition:
enum.Operator.php:31
ilLanguage
ILIAS\UI\Implementation\Component\Table\Column\Date\__construct
__construct(\ilLanguage $lng, string $title, protected DateFormat $format)
Definition:
Date.php:28
ILIAS\UI\Implementation\Component\Table\Column
Definition:
Boolean.php:21
ILIAS\UI\Implementation\Component\Table\Column\Column\getTitle
getTitle()
Definition:
Column.php:47
ILIAS\UI\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:27
ILIAS\UI\Implementation\Component\Table\Column\Date\getFormat
getFormat()
Definition:
Date.php:36
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
ILIAS\Data\DateFormat\DateFormat
A Date Format provides a format definition akin to PHP's date formatting options, but stores the sing...
Definition:
DateFormat.php:26
$lng
$lng
Definition:
save_question_post_data.php:24
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:58
DateFormat
ILIAS\UI\Implementation\Component\Table\Column\Date\getOrderingLabels
getOrderingLabels()
Definition:
Date.php:50
ILIAS\UI\Implementation\Component\Table\Column\Date\format
format($value)
Definition:
Date.php:41
ILIAS\UI\Implementation\Component\Table\Column\Date
Definition:
Date.php:26
ILIAS\UI\Component\Table\Column
Definition:
Boolean.php:21
src
UI
Implementation
Component
Table
Column
Date.php
Generated on Wed Sep 10 2025 14:12:09 for ILIAS by
1.8.13 (using
Doxyfile
)