wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
JSONFormat Class Reference
+ Inheritance diagram for JSONFormat:

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
 

Detailed Description

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.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 57 of file class.JSONFormat.php.

Member Function Documentation

JSONFormat::beforeDeserialize ( $data)
See Also
HierarchicalFormat::beforeDeserialize()

Definition at line 62 of file class.JSONFormat.php.

References JSONUtil\decode().

+ Here is the call graph for this function:

JSONFormat::afterSerialize ( $data)
See Also
HierarchicalFormat::afterSerialize()

Definition at line 72 of file class.JSONFormat.php.

References $GLOBALS.

JSONFormat::isSerializedNode (   $key,
$value 
)
See Also
HierarchicalFormat::isSerializedNode()

Definition at line 83 of file class.JSONFormat.php.

JSONFormat::serializeNode (   $key,
$value 
)
See Also
HierarchicalFormat::serializeNode()

Definition at line 91 of file class.JSONFormat.php.

References NodeSerializer\serializeNode().

+ Here is the call graph for this function:

& JSONFormat::deserializeNode (   $key,
$value 
)
See Also
HierarchicalFormat::deserializeNode()

Definition at line 100 of file class.JSONFormat.php.

References NodeSerializer\deserializeNode().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: