ILIAS
trunk Revision v11.0_alpha-1843-g9e1fad99175
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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
use
ILIAS\Language\Language
;
26
27
class
Date
extends
Column
implements C\Date
28
{
29
public
function
__construct
(
30
Language
$lng
,
31
string
$title,
32
protected
DateFormat
$format
33
) {
34
parent::__construct
($lng, $title);
35
}
36
37
public
function
getFormat
():
DateFormat
38
{
39
return
$this->format;
40
}
41
42
public
function
format
($value): string
43
{
44
$this->checkArgInstanceOf(
'value'
, $value, \DateTimeImmutable::class);
45
return
$value->format($this->
getFormat
()->
toString
());
46
}
47
51
public
function
getOrderingLabels
(): array
52
{
53
return
[
54
$this->asc_label ?? $this->
getTitle
() . self::SEPERATOR . $this->
lng
->txt(
'order_option_chronological_ascending'
),
55
$this->desc_label ?? $this->
getTitle
() . self::SEPERATOR . $this->
lng
->txt(
'order_option_chronological_descending'
)
56
];
57
}
58
}
Language
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
ILIAS\UI\Implementation\Component\Table\Column\Column
Definition:
Column.php:28
ILIAS\UI\Implementation\Component\Table\Column\Date\getFormat
getFormat()
Definition:
Date.php:37
ILIAS\UI\Implementation\Component\Table\Column\Date\__construct
__construct(Language $lng, string $title, protected DateFormat $format)
Definition:
Date.php:29
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
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
DateFormat
ILIAS\Export\ImportHandler\File\XML\Manifest\toString
Definition:
ExportObjectType.php:30
ILIAS\UI\Implementation\Component\Table\Column\Date\getOrderingLabels
getOrderingLabels()
Definition:
Date.php:51
ILIAS\UI\Implementation\Component\Table\Column\Date\format
format($value)
Definition:
Date.php:42
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
$lng
global $lng
Definition:
privfeed.php:31
ILIAS\UI\Implementation\Component\Table\Column\Date
Definition:
Date.php:27
ILIAS\UI\Component\Table\Column
Definition:
Boolean.php:21
ILIAS\Language\Language
Definition:
Language.php:23
components
ILIAS
UI
src
Implementation
Component
Table
Column
Date.php
Generated on Sun Apr 20 2025 23:04:23 for ILIAS by
1.8.13 (using
Doxyfile
)