ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
FormatBuilder.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 2019 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\Data\DateFormat
;
5
10
class
FormatBuilder
11
{
12
private
$format
= [];
13
17
public
function
get
() :
DateFormat
18
{
19
$df =
new
DateFormat
($this->format);
20
$this->format = [];
21
return
$df;
22
}
23
27
public
function
dot
() :
FormatBuilder
28
{
29
$this->format[] =
DateFormat::DOT
;
30
return
$this;
31
}
32
public
function
comma
() :
FormatBuilder
33
{
34
$this->format[] =
DateFormat::COMMA
;
35
return
$this;
36
}
37
public
function
dash
() :
FormatBuilder
38
{
39
$this->format[] =
DateFormat::DASH
;
40
return
$this;
41
}
42
public
function
slash
() :
FormatBuilder
43
{
44
$this->format[] =
DateFormat::SLASH
;
45
return
$this;
46
}
47
public
function
space
() :
FormatBuilder
48
{
49
$this->format[] =
DateFormat::SPACE
;
50
return
$this;
51
}
52
public
function
day
() :
FormatBuilder
53
{
54
$this->format[] =
DateFormat::DAY
;
55
return
$this;
56
}
57
public
function
dayOrdinal
() :
FormatBuilder
58
{
59
$this->format[] =
DateFormat::DAY_ORDINAL
;
60
return
$this;
61
}
62
public
function
weekday
() :
FormatBuilder
63
{
64
$this->format[] =
DateFormat::WEEKDAY
;
65
return
$this;
66
}
67
public
function
weekdayShort
() :
FormatBuilder
68
{
69
$this->format[] =
DateFormat::WEEKDAY_SHORT
;
70
return
$this;
71
}
72
public
function
week
() :
FormatBuilder
73
{
74
$this->format[] =
DateFormat::WEEK
;
75
return
$this;
76
}
77
public
function
month
() :
FormatBuilder
78
{
79
$this->format[] =
DateFormat::MONTH
;
80
return
$this;
81
}
82
public
function
monthSpelled
() :
FormatBuilder
83
{
84
$this->format[] =
DateFormat::MONTH_SPELLED
;
85
return
$this;
86
}
87
public
function
monthSpelledShort
() :
FormatBuilder
88
{
89
$this->format[] =
DateFormat::MONTH_SPELLED_SHORT
;
90
return
$this;
91
}
92
public
function
year
() :
FormatBuilder
93
{
94
$this->format[] =
DateFormat::YEAR
;
95
return
$this;
96
}
97
public
function
twoDigitYear
() :
FormatBuilder
98
{
99
$this->format[] =
DateFormat::YEAR_TWO_DIG
;
100
return
$this;
101
}
102
}
ILIAS\Data\DateFormat\DateFormat\MONTH_SPELLED
const MONTH_SPELLED
Definition:
DateFormat.php:23
ILIAS\Data\DateFormat\DateFormat\COMMA
const COMMA
Definition:
DateFormat.php:13
ILIAS\Data\DateFormat\FormatBuilder\weekday
weekday()
Definition:
FormatBuilder.php:62
ILIAS\Data\DateFormat\DateFormat\YEAR
const YEAR
Definition:
DateFormat.php:25
ILIAS\Data\DateFormat\FormatBuilder\dot
dot()
Append tokens to format.
Definition:
FormatBuilder.php:27
ILIAS\Data\DateFormat\FormatBuilder\week
week()
Definition:
FormatBuilder.php:72
ILIAS\Data\DateFormat\FormatBuilder\slash
slash()
Definition:
FormatBuilder.php:42
ILIAS\Data\DateFormat\DateFormat\DOT
const DOT
Definition:
DateFormat.php:12
ILIAS\Data\DateFormat\FormatBuilder\$format
$format
Definition:
FormatBuilder.php:12
ILIAS\Data\DateFormat\DateFormat\YEAR_TWO_DIG
const YEAR_TWO_DIG
Definition:
DateFormat.php:26
ILIAS\Data\DateFormat\DateFormat\DASH
const DASH
Definition:
DateFormat.php:14
ILIAS\Data\DateFormat\FormatBuilder\space
space()
Definition:
FormatBuilder.php:47
ILIAS\Data\DateFormat\DateFormat\MONTH
const MONTH
Definition:
DateFormat.php:22
ILIAS\Data\DateFormat\DateFormat\SPACE
const SPACE
Definition:
DateFormat.php:16
ILIAS\Data\DateFormat\DateFormat\SLASH
const SLASH
Definition:
DateFormat.php:15
ILIAS\Data\DateFormat\FormatBuilder
Builds a Date Format with split up elements to ease conversion.
Definition:
FormatBuilder.php:10
ILIAS\Data\DateFormat\FormatBuilder\weekdayShort
weekdayShort()
Definition:
FormatBuilder.php:67
ILIAS\Data\DateFormat\FormatBuilder\month
month()
Definition:
FormatBuilder.php:77
ILIAS\Data\DateFormat\DateFormat\DAY
const DAY
Definition:
DateFormat.php:17
ILIAS\Data\DateFormat\FormatBuilder\monthSpelled
monthSpelled()
Definition:
FormatBuilder.php:82
ILIAS\Data\DateFormat
Definition:
DateFormat.php:4
ILIAS\Data\DateFormat\FormatBuilder\comma
comma()
Definition:
FormatBuilder.php:32
ILIAS\Data\DateFormat\FormatBuilder\twoDigitYear
twoDigitYear()
Definition:
FormatBuilder.php:97
ILIAS\Data\DateFormat\FormatBuilder\monthSpelledShort
monthSpelledShort()
Definition:
FormatBuilder.php:87
ILIAS\Data\DateFormat\FormatBuilder\dayOrdinal
dayOrdinal()
Definition:
FormatBuilder.php:57
ILIAS\Data\DateFormat\FormatBuilder\year
year()
Definition:
FormatBuilder.php:92
ILIAS\Data\DateFormat\DateFormat\DAY_ORDINAL
const DAY_ORDINAL
Definition:
DateFormat.php:18
ILIAS\Data\DateFormat\DateFormat\MONTH_SPELLED_SHORT
const MONTH_SPELLED_SHORT
Definition:
DateFormat.php:24
ILIAS\Data\DateFormat\DateFormat\WEEKDAY
const WEEKDAY
Definition:
DateFormat.php:19
ILIAS\Data\DateFormat\FormatBuilder\dash
dash()
Definition:
FormatBuilder.php:37
ILIAS\Data\DateFormat\FormatBuilder\day
day()
Definition:
FormatBuilder.php:52
ILIAS\Data\DateFormat\DateFormat\WEEK
const WEEK
Definition:
DateFormat.php:21
ILIAS\Data\DateFormat\DateFormat\WEEKDAY_SHORT
const WEEKDAY_SHORT
Definition:
DateFormat.php:20
src
Data
DateFormat
FormatBuilder.php
Generated on Sat Apr 5 2025 21:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)