ILIAS
trunk Revision v11.0_alpha-1851-ga8564da6fed
◀ 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
Duration.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Component\Input\Field
;
22
23
use
ILIAS\UI\Component\Input\Container\Filter\FilterInput
;
24
use
ILIAS\Data\DateFormat\DateFormat
;
25
use
DateTimeImmutable
;
26
30
interface
Duration
extends
Group
,
FilterInput
31
{
35
public
function
withFormat
(
DateFormat
$format):
Duration
;
36
40
public
function
getFormat
():
DateFormat
;
41
45
public
function
withMinValue
(
DateTimeImmutable
$date):
Duration
;
46
50
public
function
getMinValue
(): ?
DateTimeImmutable
;
51
55
public
function
withMaxValue
(
DateTimeImmutable
$date):
Duration
;
56
60
public
function
getMaxValue
(): ?
DateTimeImmutable
;
61
65
public
function
withUseTime
(
bool
$with_time):
Duration
;
66
70
public
function
getUseTime
(): bool;
71
75
public
function
withTimeOnly
(
bool
$time_only):
Duration
;
76
80
public
function
getTimeOnly
(): bool;
81
85
public
function
withTimezone
(
string
$tz):
Duration
;
86
90
public
function
getTimezone
(): ?string;
91
95
public
function
withLabels
(
string
$start_label,
string
$end_label):
Duration
;
96
}
ILIAS\UI\Component\Input\Field\Duration
This describes the duration input.
Definition:
Duration.php:30
ILIAS\UI\Component\Input\Field\Duration\withTimeOnly
withTimeOnly(bool $time_only)
Use this Input for a time-value rather than a date.
DateTimeImmutable
ILIAS\UI\Component\Input\Field\Duration\withLabels
withLabels(string $start_label, string $end_label)
Change labels for contained fields.
FilterInput
ILIAS\UI\Component\Input\Field\Duration\getMaxValue
getMaxValue()
Return the maximum date the input accepts.
Group
ILIAS\UI\Component\Input\Field\Duration\withFormat
withFormat(DateFormat $format)
Get an input like this using the given format.
ILIAS\UI\Component\Input\Field
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Checkbox.php:21
ILIAS\UI\Component\Input\Field\Duration\withMinValue
withMinValue(DateTimeImmutable $date)
Limit accepted values to Duration past (and including) the given $Duration.
ILIAS\UI\Component\Input\Field\Duration\getTimezone
getTimezone()
Get the timezone of this input.
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\UI\Component\Input\Field\Duration\withUseTime
withUseTime(bool $with_time)
Input both date and time.
ILIAS\UI\Component\Input\Field\Duration\withMaxValue
withMaxValue(DateTimeImmutable $date)
Limit accepted values to Duration before (and including) the given value.
DateFormat
ILIAS\UI\Component\Input\Field\Duration\getFormat
getFormat()
Get the date-format of this input.
ILIAS\UI\Component\Input\Field\Duration\getUseTime
getUseTime()
Should the input be used to get both date and time?
ILIAS\UI\Component\Input\Field\Duration\getMinValue
getMinValue()
Return the lowest value the input accepts.
ILIAS\UI\Component\Input\Field\Duration\getTimeOnly
getTimeOnly()
Should the input be used to get a time only?
ILIAS\UI\Component\Input\Container\Filter\FilterInput
This interface must be implemented by all Inputs that support Filter Containers.
Definition:
FilterInput.php:35
ILIAS\UI\Component\Input\Field\Duration\withTimezone
withTimezone(string $tz)
Get an input like this using the given timezone.
components
ILIAS
UI
src
Component
Input
Field
Duration.php
Generated on Tue Apr 22 2025 23:02:46 for ILIAS by
1.8.13 (using
Doxyfile
)