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 36 of file DionysosNodeSerializer.php.
Inheritance diagram for DionysosNodeSerializer:
Public Member Functions | |
isSerializedNode ($data) | |
deserializeNode ($data, Node $parent=null, $role=null) | |
serializeNode ($node) | |
Public Member Functions inherited from AbstractNodeSerializer | |
__construct (PersistenceFacade $persistenceFacade) | |
Public Attributes | |
const | NODE_KEYS |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractNodeSerializer | |
getNodeTemplate ($oid) | |
deserializeValue (Node $node, $key, $value) | |
isMultiValued (Node $node, $role) | |
Member Function Documentation
◆ isSerializedNode()
isSerializedNode | ( | $data | ) |
- See also
- NodeSerializer::isSerializedNode
Implements NodeSerializer.
Definition at line 50 of file DionysosNodeSerializer.php.
◆ deserializeNode()
deserializeNode | ( | $data, | |
Node | $parent = null , |
||
$role = null |
|||
) |
- See also
- NodeSerializer::deserializeNode
Implements NodeSerializer.
Definition at line 67 of file DionysosNodeSerializer.php.
◆ serializeNode()
serializeNode | ( | $node | ) |
- See also
- NodeSerializer::serializeNode
Implements NodeSerializer.
Definition at line 112 of file DionysosNodeSerializer.php.
Member Data Documentation
◆ NODE_KEYS
const NODE_KEYS |
Initial value:
= [
'className',
'oid',
'isReference',
'lastChange',
'attributes'
]
Definition at line 38 of file DionysosNodeSerializer.php.