ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (Text\SimpleDocumentMarkdown $description, Field ... $fields) | |
getFields () | |
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) | |
Protected Member Functions | |
possibleMethodNames (string $name) | |
possiblePropertyNames (string $name) | |
camelCased (string $name) | |
snakeCased (string $name) | |
Protected Attributes | |
array | $fields |
Definition at line 25 of file DObject.php.
ILIAS\Data\Description\DObject::__construct | ( | Text\SimpleDocumentMarkdown | $description, |
Field ... | $fields | ||
) |
Definition at line 31 of file DObject.php.
References ILIAS\Data\Description\DObject\$fields, and ILIAS\GlobalScreen\Provider\__construct().
|
protected |
Definition at line 121 of file DObject.php.
Referenced by ILIAS\Data\Description\DObject\possibleMethodNames(), and ILIAS\Data\Description\DObject\possiblePropertyNames().
ILIAS\Data\Description\DObject::getFields | ( | ) |
Definition at line 39 of file DObject.php.
ILIAS\Data\Description\DObject::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 46 of file DObject.php.
References $data, ILIAS\Data\Description\DObject\possibleMethodNames(), and ILIAS\Data\Description\DObject\possiblePropertyNames().
|
protected |
Definition at line 97 of file DObject.php.
References ILIAS\Data\Description\DObject\camelCased(), and ILIAS\Data\Description\DObject\snakeCased().
Referenced by ILIAS\Data\Description\DObject\getPrimitiveRepresentation().
|
protected |
Definition at line 112 of file DObject.php.
References ILIAS\Data\Description\DObject\camelCased(), and ILIAS\Data\Description\DObject\snakeCased().
Referenced by ILIAS\Data\Description\DObject\getPrimitiveRepresentation().
|
protected |
Definition at line 126 of file DObject.php.
Referenced by ILIAS\Data\Description\DObject\possibleMethodNames(), and ILIAS\Data\Description\DObject\possiblePropertyNames().
|
protected |
Definition at line 29 of file DObject.php.
Referenced by ILIAS\Data\Description\DObject\__construct().