ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
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
26
class
Date
extends
Column
implements C\Date
27
{
28
protected
DateFormat
$format
;
29
30
public
function
__construct
(
31
\
ilLanguage
$lng
,
32
string
$title
,
33
DateFormat
$format
34
) {
35
parent::__construct
($lng, $title);
36
$this->
format
=
$format
;
37
}
38
39
public
function
getFormat
():
DateFormat
40
{
41
return
$this->format
;
42
}
43
44
public
function
format
($value): string
45
{
46
$this->checkArgInstanceOf(
'value'
, $value, \DateTimeImmutable::class);
47
return
$value->format($this->
getFormat
()->toString());
48
}
49
53
public
function
getOrderingLabels
(): array
54
{
55
return
[
56
$this->asc_label ?? $this->
getTitle
() . self::SEPERATOR . $this->
lng
->txt(
'order_option_chronological_ascending'
),
57
$this->desc_label ?? $this->
getTitle
() . self::SEPERATOR . $this->
lng
->txt(
'order_option_chronological_descending'
)
58
];
59
}
60
}
ILIAS\UI\Implementation\Component\Table\Column\Column\$lng
ilLanguage $lng
Definition:
Column.php:39
ilLanguage
ILIAS\UI\Implementation\Component\Table\Column
Definition:
Boolean.php:21
ILIAS\UI\Implementation\Component\Table\Column\Column\getTitle
getTitle()
Definition:
Column.php:49
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:39
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:56
DateFormat
ILIAS\UI\Implementation\Component\Table\Column\Date\getOrderingLabels
getOrderingLabels()
Definition:
Date.php:53
ILIAS\UI\Implementation\Component\Table\Column\Date\format
format($value)
Definition:
Date.php:44
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ILIAS\UI\Implementation\Component\Table\Column\Date
Definition:
Date.php:26
ILIAS\UI\Implementation\Component\Table\Column\Column\$title
string $title
Definition:
Column.php:38
ILIAS\UI\Implementation\Component\Table\Column\Date\$format
DateFormat $format
Definition:
Date.php:28
ILIAS\UI\Implementation\Component\Table\Column\Date\__construct
__construct(\ilLanguage $lng, string $title, DateFormat $format)
Definition:
Date.php:30
ILIAS\UI\Component\Table\Column
Definition:
Boolean.php:21
src
UI
Implementation
Component
Table
Column
Date.php
Generated on Tue Apr 1 2025 22:02:48 for ILIAS by
1.8.13 (using
Doxyfile
)