wCMF
3.6
|
Public Member Functions | |
beforeDeserialize (&$data) | |
afterSerialize (&$data) | |
isSerializedNode ($key, &$value) | |
serializeNode ($key, &$value) | |
& | deserializeNode ($key, &$value) |
Public Member Functions inherited from HierarchicalFormat | |
deserialize (&$request) | |
serialize (&$response) | |
processValues (&$value, $key, $method) | |
beforeDeserialize (&$data) | |
afterDeserialize (&$data) | |
beforeSerialize (&$data) | |
afterSerialize (&$data) | |
isSerializedNode ($key, &$value) | |
isDeserializedNode ($key, &$value) | |
serializeNode ($key, &$value) | |
& | deserializeNode ($key, &$value) |
Public Member Functions inherited from AbstractFormat | |
& | getNode ($oid) |
getNodes () | |
Public Member Functions inherited from IFormat | |
deserialize (&$request) | |
serialize (&$response) | |
Additional Inherited Members | |
Public Attributes inherited from AbstractFormat | |
$_deserializedNodes = null | |
JSONFormat realizes the JSON request/response format. All data will be de-/serialized using the json_encode/json_encode method if avalaible or JSON.php as fallback, except for Nodes. Nodes are serialized into an array before encoding (see JSONFormat::serializeValue). On serialization the data will be outputted directly using the print command.
Definition at line 57 of file class.JSONFormat.php.
JSONFormat::beforeDeserialize | ( | & | $data | ) |
Definition at line 62 of file class.JSONFormat.php.
References JSONUtil\decode().
JSONFormat::afterSerialize | ( | & | $data | ) |
Definition at line 72 of file class.JSONFormat.php.
References $GLOBALS.
JSONFormat::isSerializedNode | ( | $key, | |
& | $value | ||
) |
Definition at line 83 of file class.JSONFormat.php.
JSONFormat::serializeNode | ( | $key, | |
& | $value | ||
) |
Definition at line 91 of file class.JSONFormat.php.
References NodeSerializer\serializeNode().
& JSONFormat::deserializeNode | ( | $key, | |
& | $value | ||
) |
Definition at line 100 of file class.JSONFormat.php.
References NodeSerializer\deserializeNode().