DionysosNodeSerializer Class Reference
Detailed Description
DionysosNodeSerializer is used to serialize Nodes into the Dionysos format and vice versa.
The format of serialized Nodes is defined in the Dionysos specification (See: http://olympos.svn.sourceforge.net/viewvc/olympos/trunk/olympos/dionysos/docs/Dionysos%20Specification%20JSON.odt)
The array representation is an associative array where the keys are:
- className: The type of the Node (optional, if oid is given)
- oid: The object id of the Node (optional, if className is given)
- isReference: Boolean whether this Node is a reference or complete
- lastChange: A timestamp defining the point in time of the last change of the Node
- attributes: An associative array with the value names as keys and the appropriate values Relations to other Nodes are also contained in this array, where the relation name is the array key
Definition at line 38 of file DionysosNodeSerializer.php.
Inheritance diagram for DionysosNodeSerializer:
Public Member Functions | |
__construct (PersistenceFacade $persistenceFacade) | |
isSerializedNode ($data) | |
deserializeNode ($data, Node $parent=null, $role=null) | |
serializeNode ($node) | |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractNodeSerializer | |
deserializeValue (Node $node, $key, $value) | |
isMultiValued (Node $node, $role) | |
Constructor & Destructor Documentation
__construct | ( | PersistenceFacade | $persistenceFacade | ) |
Constructor.
- Parameters
-
$persistenceFacade
Definition at line 54 of file DionysosNodeSerializer.php.
Member Function Documentation
isSerializedNode | ( | $data | ) |
- See also
- NodeSerializer::isSerializedNode
Implements NodeSerializer.
Definition at line 61 of file DionysosNodeSerializer.php.
deserializeNode | ( | $data, | |
Node | $parent = null , |
||
$role = null |
|||
) |
- See also
- NodeSerializer::deserializeNode
Implements NodeSerializer.
Definition at line 78 of file DionysosNodeSerializer.php.
serializeNode | ( | $node | ) |
- See also
- NodeSerializer::serializeNode
Implements NodeSerializer.
Definition at line 127 of file DionysosNodeSerializer.php.