AbstractNodeSerializer Class Reference
Detailed Description
NodeSerializerBase is a base class for NodeSerialize implementations.
Definition at line 23 of file AbstractNodeSerializer.php.
Inheritance diagram for AbstractNodeSerializer:
Public Member Functions | |
__construct (PersistenceFacade $persistenceFacade) | |
Public Member Functions inherited from NodeSerializer | |
isSerializedNode ($data) | |
deserializeNode ($data, Node $parent=null, $role=null) | |
serializeNode ($node) | |
Protected Member Functions | |
getNodeTemplate ($oid) | |
deserializeValue (Node $node, $key, $value) | |
isMultiValued (Node $node, $role) | |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | PersistenceFacade | $persistenceFacade | ) |
Constructor.
- Parameters
-
$persistenceFacade
Definition at line 31 of file AbstractNodeSerializer.php.
Member Function Documentation
◆ getNodeTemplate()
|
protected |
Get a Node instance based on the original values to merge the deserialized values into.
- Parameters
-
$oid The object id of the Node
- Returns
- Node
Definition at line 40 of file AbstractNodeSerializer.php.
◆ deserializeValue()
|
protected |
Deserialize a node value.
- Parameters
-
$node Node instance $key The value name or type if value is an array $value The value or child data, if value is an array
Definition at line 59 of file AbstractNodeSerializer.php.
◆ isMultiValued()
|
protected |
Check if a relation is multi valued.
- Parameters
-
$node The Node that has the relation $role The role of the relation
Definition at line 83 of file AbstractNodeSerializer.php.