ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Duration.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2018 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
12
interface
Duration
extends
Group
13
{
17
public
function
withFormat
(
DateFormat
$format
) :
Duration
;
18
22
public
function
getFormat
() :
DateFormat
;
23
27
public
function
withMinValue
(\
DateTimeImmutable
$date) :
Duration
;
28
33
public
function
getMinValue
();
34
38
public
function
withMaxValue
(\
DateTimeImmutable
$date) :
Duration
;
39
44
public
function
getMaxValue
();
45
50
public
function
withUseTime
(
bool
$with_time) :
Duration
;
51
56
public
function
getUseTime
() : bool;
57
62
public
function
withTimeOnly
(
bool
$time_only) :
Duration
;
63
68
public
function
getTimeOnly
() : bool;
69
73
public
function
withTimezone
(
string
$tz
) :
Duration
;
74
79
public
function
getTimezone
();
80
}
ILIAS\UI\Component\Input\Field\Duration
This describes the duration input.
Definition:
Duration.php:12
ILIAS\UI\Component\Input\Field\Duration\withTimeOnly
withTimeOnly(bool $time_only)
Use this Input for a time-value rather than a date.
DateTimeImmutable
$tz
$tz
Definition:
inc.setup_header.php:91
ILIAS\UI\Component\Input\Field\Group
This describes a group of inputs.
Definition:
Group.php:11
ILIAS\UI\Component\Input\Field\Duration\getMaxValue
getMaxValue()
Return the maximum date the input accepts.
ILIAS\UI\Component\Input\Field\Duration\withFormat
withFormat(DateFormat $format)
Get an input like this using the given format.
ILIAS\UI\Component\Input\Field
Definition:
Checkbox.php:6
ILIAS\UI\Component\Input\Field\Duration\withMaxValue
withMaxValue(\DateTimeImmutable $date)
Limit accepted values to Duration before (and including) the given value.
ILIAS\UI\Component\Input\Field\Duration\getTimezone
getTimezone()
Get the timezone of this input.
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\withUseTime
withUseTime(bool $with_time)
Input both date and time.
$format
$format
Definition:
metadata.php:218
ILIAS\Data\DateFormat
Definition:
DateFormat.php:4
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\Field\Duration\withTimezone
withTimezone(string $tz)
Get an input like this using the given timezone.
src
UI
Component
Input
Field
Duration.php
Generated on Tue Sep 2 2025 20:01:29 for ILIAS by
1.8.13 (using
Doxyfile
)