ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
DataHelperInterface.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\DataHelper
;
22
23
interface
DataHelperInterface
24
{
25
public
function
matchesDurationPattern
(
string
$string): bool;
26
27
public
function
matchesDatetimePattern
(
string
$string): bool;
28
36
public
function
durationToIterator
(
string
$duration
): \Generator;
37
38
public
function
durationToSeconds
(
string
$duration):
int
;
39
50
public
function
datetimeToIterator
(
string
$datetime
): \Generator;
51
52
public
function
datetimeToObject
(
string
$datetime): \DateTimeImmutable;
53
54
public
function
durationFromIntegers
(
55
?
int
$years,
56
?
int
$months,
57
?
int
$days,
58
?
int
$hours,
59
?
int
$minutes,
60
?
int
$seconds
61
): string;
62
66
public
function
datetimeFromObject
(\
DateTimeImmutable
$object): string;
67
71
public
function
getAllLanguages
(): \Generator;
72
}
ILIAS\MetaData\DataHelper\DataHelperInterface\durationFromIntegers
durationFromIntegers(?int $years, ?int $months, ?int $days, ?int $hours, ?int $minutes, ?int $seconds)
DateTimeImmutable
ILIAS\MetaData\DataHelper\DataHelperInterface\matchesDurationPattern
matchesDurationPattern(string $string)
ILIAS\MetaData\DataHelper\DataHelperInterface\durationToIterator
durationToIterator(string $duration)
Returns in sequence years, months, days, hours, minutes, seconds.
ILIAS\MetaData\DataHelper\DataHelperInterface\datetimeToObject
datetimeToObject(string $datetime)
$datetime
$datetime
Definition:
LOMStructure.php:69
ILIAS\MetaData\DataHelper\DataHelperInterface\getAllLanguages
getAllLanguages()
ILIAS\MetaData\DataHelper
Definition:
Constants.php:21
$duration
$duration
Definition:
LOMStructure.php:54
ILIAS\MetaData\DataHelper\DataHelperInterface\durationToSeconds
durationToSeconds(string $duration)
ILIAS\MetaData\DataHelper\DataHelperInterface
Definition:
DataHelperInterface.php:23
ILIAS\MetaData\DataHelper\DataHelperInterface\matchesDatetimePattern
matchesDatetimePattern(string $string)
ILIAS\MetaData\DataHelper\DataHelperInterface\datetimeToIterator
datetimeToIterator(string $datetime)
Returns in sequence: YYYY, MM, DD, hh, mm, ss, s (arbitrary many digits for decimal fractions of seco...
ILIAS\MetaData\DataHelper\DataHelperInterface\datetimeFromObject
datetimeFromObject(\DateTimeImmutable $object)
Note that LOM in ILIAS ignores the time part of any datetimes.
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
MetaData
classes
DataHelper
DataHelperInterface.php
Generated on Sun Aug 31 2025 23:03:22 for ILIAS by
1.8.13 (using
Doxyfile
)