|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Translates between the values a consumer works with and the strings a repository stores. More...
Collaboration diagram for ILIAS\KeyValueStorage\Internal\Values:Public Member Functions | |
| __construct (Refinery $refinery) | |
| encode (mixed $value) | |
| decode (string $value) | |
Private Member Functions | |
| checkEncodable (mixed $value) | |
Private Attributes | |
| Transformation | $encode |
| Transformation | $decode |
Translates between the values a consumer works with and the strings a repository stores.
Values are stored as JSON via Refinery encode/decode transformations. serialize()/unserialize() are never used, so reading a value can never instantiate an object.
Definition at line 37 of file Values.php.
| ILIAS\KeyValueStorage\Internal\Values::__construct | ( | Refinery | $refinery | ) |
Definition at line 43 of file Values.php.
References ILIAS\KeyValueStorage\Internal\Values\decode(), and ILIAS\KeyValueStorage\Internal\Values\encode().
Here is the call graph for this function:
|
private |
Definition at line 79 of file Values.php.
References ILIAS\KeyValueStorage\Internal\Values\checkEncodable().
Referenced by ILIAS\KeyValueStorage\Internal\Values\checkEncodable(), and ILIAS\KeyValueStorage\Internal\Values\encode().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\KeyValueStorage\Internal\Values::decode | ( | string | $value | ) |
| InvalidStoredValueException | if the stored string cannot be read back |
Definition at line 70 of file Values.php.
References Vendor\Package\$e, and ILIAS\KeyValueStorage\Internal\Values\decode().
Referenced by ILIAS\KeyValueStorage\Internal\Values\__construct(), and ILIAS\KeyValueStorage\Internal\Values\decode().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\KeyValueStorage\Internal\Values::encode | ( | mixed | $value | ) |
InvalidArgumentException if the value cannot be stored
Definition at line 52 of file Values.php.
References Vendor\Package\$e, ILIAS\KeyValueStorage\Internal\Values\checkEncodable(), and ILIAS\KeyValueStorage\Internal\Values\encode().
Referenced by ILIAS\KeyValueStorage\Internal\Values\__construct(), and ILIAS\KeyValueStorage\Internal\Values\encode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 41 of file Values.php.
|
private |
Definition at line 39 of file Values.php.