|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ILIAS\Data\Description\DValue:
Collaboration diagram for ILIAS\Data\Description\DValue: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... | |
Public Member Functions inherited from ILIAS\Data\Description\Description | |
| __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().
Here is the call graph for this function:| 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.