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
DateTime.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2019 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Component\Input\Field
;
6
7
use
ILIAS\Data\DateFormat\DateFormat
;
8
use
ILIAS\UI\Component\Component
;
9
13
interface
DateTime
extends
Component
,
FormInput
14
{
18
public
function
withFormat
(
DateFormat
$format
) :
DateTime
;
19
23
public
function
getFormat
() :
DateFormat
;
24
28
public
function
withTimezone
(
string
$tz) :
DateTime
;
29
34
public
function
getTimezone
();
35
39
public
function
withMinValue
(\
DateTimeImmutable
$datetime) :
DateTime
;
40
45
public
function
getMinValue
();
46
50
public
function
withMaxValue
(\
DateTimeImmutable
$datetime) :
DateTime
;
51
56
public
function
getMaxValue
();
57
62
public
function
withUseTime
(
bool
$with_time) :
DateTime
;
63
68
public
function
getUseTime
() : bool;
69
74
public
function
withTimeOnly
(
bool
$time_only) :
DateTime
;
75
80
public
function
getTimeOnly
() : bool;
81
}
DateTimeImmutable
ILIAS\UI\Component
ILIAS\UI\Component\Input\Field\DateTime\getUseTime
getUseTime()
Should the input be used to get both date and time?
Component
ILIAS\UI\Component\Input\Field\DateTime\getTimezone
getTimezone()
Get the timezone of this input.
ILIAS\UI\Component\Input\Field\DateTime\getMaxValue
getMaxValue()
Return the maximum date the input accepts.
ILIAS\UI\Component\Input\Field\FormInput
This describes inputs that can be used in forms.
Definition:
FormInput.php:15
ILIAS\UI\Component\Input\Field
Definition:
Checkbox.php:6
ILIAS\UI\Component\Input\Field\DateTime\withUseTime
withUseTime(bool $with_time)
Input both date and time.
ILIAS\UI\Component\Input\Field\DateTime\withFormat
withFormat(DateFormat $format)
Get an input like this using the given format.
ILIAS\UI\Component\Input\Field\DateTime\withMinValue
withMinValue(\DateTimeImmutable $datetime)
Limit accepted values to datetime past (and including) the given $datetime.
ILIAS\UI\Component\Input\Field\DateTime\withMaxValue
withMaxValue(\DateTimeImmutable $datetime)
Limit accepted values to datetime before (and including) the given value.
$format
$format
Definition:
metadata.php:218
ILIAS\Data\DateFormat
Definition:
DateFormat.php:4
ILIAS\UI\Component\Input\Field\DateTime\getMinValue
getMinValue()
Return the lowest value the input accepts.
DateFormat
ILIAS\UI\Component\Input\Field\DateTime\withTimezone
withTimezone(string $tz)
Get an input like this using the given timezone.
Definition:
DateTime.php:114
ILIAS\UI\Component\Input\Field\DateTime
This describes the datetime-field.
Definition:
DateTime.php:13
ILIAS\UI\Component\Input\Field\DateTime\getFormat
getFormat()
Get the date-format of this input.
ILIAS\UI\Component\Input\Field\DateTime\getTimeOnly
getTimeOnly()
Should the input be used to get a time only?
ILIAS\UI\Component\Input\Field\DateTime\withTimeOnly
withTimeOnly(bool $time_only)
Use this Input for a time-value rather than a date.
src
UI
Component
Input
Field
DateTime.php
Generated on Fri Apr 25 2025 21:02:13 for ILIAS by
1.8.13 (using
Doxyfile
)