ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\MetaData\DataHelper\DataHelperInterface Interface Reference
+ Inheritance diagram for ILIAS\MetaData\DataHelper\DataHelperInterface:
+ Collaboration diagram for ILIAS\MetaData\DataHelper\DataHelperInterface:

Public Member Functions

 matchesDurationPattern (string $string)
 
 matchesDatetimePattern (string $string)
 
 durationToIterator (string $duration)
 Returns in sequence years, months, days, hours, minutes, seconds. More...
 
 durationToSeconds (string $duration)
 
 datetimeToIterator (string $datetime)
 Returns in sequence: YYYY, MM, DD, hh, mm, ss, s (arbitrary many digits for decimal fractions of seconds), 8: timezone, either Z for UTC or +- hh:mm (mm is optional) Note that datetimes distinguish between a field being set to zero or not set at all. More...
 
 datetimeToObject (string $datetime)
 
 durationFromIntegers (?int $years, ?int $months, ?int $days, ?int $hours, ?int $minutes, ?int $seconds)
 
 datetimeFromObject (\DateTimeImmutable $object)
 Note that LOM in ILIAS ignores the time part of any datetimes. More...
 
 getAllLanguages ()
 

Detailed Description

Definition at line 23 of file DataHelperInterface.php.

Member Function Documentation

◆ datetimeFromObject()

ILIAS\MetaData\DataHelper\DataHelperInterface::datetimeFromObject ( \DateTimeImmutable  $object)

Note that LOM in ILIAS ignores the time part of any datetimes.

Implemented in ILIAS\MetaData\DataHelper\DataHelper, and ILIAS\MetaData\DataHelper\NullDataHelper.

◆ datetimeToIterator()

ILIAS\MetaData\DataHelper\DataHelperInterface::datetimeToIterator ( string  $datetime)

Returns in sequence: YYYY, MM, DD, hh, mm, ss, s (arbitrary many digits for decimal fractions of seconds), 8: timezone, either Z for UTC or +- hh:mm (mm is optional) Note that datetimes distinguish between a field being set to zero or not set at all.

In the latter case, the field is yielded as null.

Returns
int[]|null[]|string[]

Implemented in ILIAS\MetaData\DataHelper\DataHelper, and ILIAS\MetaData\DataHelper\NullDataHelper.

◆ datetimeToObject()

ILIAS\MetaData\DataHelper\DataHelperInterface::datetimeToObject ( string  $datetime)

◆ durationFromIntegers()

ILIAS\MetaData\DataHelper\DataHelperInterface::durationFromIntegers ( ?int  $years,
?int  $months,
?int  $days,
?int  $hours,
?int  $minutes,
?int  $seconds 
)

◆ durationToIterator()

ILIAS\MetaData\DataHelper\DataHelperInterface::durationToIterator ( string  $duration)

Returns in sequence years, months, days, hours, minutes, seconds.

Note that durations distinguish between a field being set to zero or not set at all. In the latter case, the field is yielded as null.

Returns
int[]|null[]

Implemented in ILIAS\MetaData\DataHelper\DataHelper, and ILIAS\MetaData\DataHelper\NullDataHelper.

◆ durationToSeconds()

ILIAS\MetaData\DataHelper\DataHelperInterface::durationToSeconds ( string  $duration)

◆ getAllLanguages()

ILIAS\MetaData\DataHelper\DataHelperInterface::getAllLanguages ( )

◆ matchesDatetimePattern()

ILIAS\MetaData\DataHelper\DataHelperInterface::matchesDatetimePattern ( string  $string)

◆ matchesDurationPattern()

ILIAS\MetaData\DataHelper\DataHelperInterface::matchesDurationPattern ( string  $string)

The documentation for this interface was generated from the following file: