ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (Text\SimpleDocumentMarkdown $description, protected ValueType $type,) | |
getType () | |
getPrimitiveRepresentation (mixed $data) | |
Each of the types that can be described has a canonical representation created from primitive PHP types. More... | |
![]() | |
__construct (protected ?Text\SimpleDocumentMarkdown $description,) | |
getDescription () | |
getPrimitiveRepresentation (mixed $data) | |
Each of the types that can be described has a canonical representation created from primitive PHP types. More... | |
matches (mixed $data) | |
Definition at line 25 of file DValue.php.
ILIAS\Data\Description\DValue::__construct | ( | Text\SimpleDocumentMarkdown | $description, |
protected ValueType | $type | ||
) |
Definition at line 27 of file DValue.php.
References ILIAS\GlobalScreen\Provider\__construct().
ILIAS\Data\Description\DValue::getPrimitiveRepresentation | ( | mixed | $data | ) |
Each of the types that can be described has a canonical representation created from primitive PHP types.
This attempts to transform the provided data into such a representation.
If this returns a \Closure, the data cannot be transformed into such a representation and the \Closure will produce a generator that provides a list of defects where $data does not match the description. If this does return something else it will be plain old php data according to the description.
Reimplemented from ILIAS\Data\Description\Description.
Definition at line 39 of file DValue.php.
References $data, and ILIAS\Data\Description\NULL.
ILIAS\Data\Description\DValue::getType | ( | ) |
Definition at line 34 of file DValue.php.