ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\MetaData\DataHelper\Constants Class Reference
+ Inheritance diagram for ILIAS\MetaData\DataHelper\Constants:
+ Collaboration diagram for ILIAS\MetaData\DataHelper\Constants:

Data Fields

const string DURATION_REGEX
 This monstrosity makes sure durations conform to the format given by LOM, and picks out the relevant numbers. More...
 

Protected Attributes

const string DATETIME_REGEX
 This monstrosity makes sure datetimes conform to the format given by LOM, and picks out the relevant numbers. More...
 
const array LANGUAGES
 Note that 'xx' should be translated to 'none'. More...
 

Detailed Description

Definition at line 23 of file Constants.php.

Field Documentation

◆ DATETIME_REGEX

const string ILIAS\MetaData\DataHelper\Constants::DATETIME_REGEX
protected
Initial value:
= '/^(\d{4})(?:-(\d{2})(?:-(\d{2})' .
'(?:T(\d{2})(?::(\d{2})(?::(\d{2})(?:\.(\d+)(Z|[+\-]' .
'\d{2}(?::\d{2})?)?)?)?)?)?)?)?$/'

This monstrosity makes sure datetimes conform to the format given by LOM, and picks out the relevant numbers.

match 1: YYYY, 2: MM, 3: DD, 4: hh, 5: mm, 6: ss, 7: s (arbitrary many digits for decimal fractions of seconds), 8: timezone, either Z for UTC or +- hh:mm (mm is optional)

Definition at line 40 of file Constants.php.

Referenced by ILIAS\MetaData\DataHelper\DataHelper\datetimeToIterator(), ILIAS\MetaData\DataHelper\DataHelper\datetimeToObject(), and ILIAS\MetaData\DataHelper\DataHelper\matchesDatetimePattern().

◆ DURATION_REGEX

const string ILIAS\MetaData\DataHelper\Constants::DURATION_REGEX
Initial value:
= '/^P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)' .
'?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:.\d+)?S)?)?$/'

This monstrosity makes sure durations conform to the format given by LOM, and picks out the relevant numbers.

match 1: years, 2: months, 3: days, 4: hours, 5: minutes, 6: seconds

Definition at line 30 of file Constants.php.

Referenced by ILIAS\MetaData\DataHelper\DataHelper\durationToIterator(), and ILIAS\MetaData\DataHelper\DataHelper\matchesDurationPattern().

◆ LANGUAGES

const array ILIAS\MetaData\DataHelper\Constants::LANGUAGES
protected

Note that 'xx' should be translated to 'none'.

Definition at line 47 of file Constants.php.

Referenced by ILIAS\MetaData\DataHelper\DataHelper\getAllLanguages().


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