AbstractNodeSerializer Class Reference

Detailed Description

NodeSerializerBase is a base class for NodeSerialize implementations.

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

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()

getNodeTemplate (   $oid)
protected

Get a Node instance based on the original values to merge the deserialized values into.

Parameters
$oidThe object id of the Node
Returns
Node

Definition at line 40 of file AbstractNodeSerializer.php.

◆ deserializeValue()

deserializeValue ( Node  $node,
  $key,
  $value 
)
protected

Deserialize a node value.

Parameters
$nodeNode instance
$keyThe value name or type if value is an array
$valueThe value or child data, if value is an array

Definition at line 59 of file AbstractNodeSerializer.php.

◆ isMultiValued()

isMultiValued ( Node  $node,
  $role 
)
protected

Check if a relation is multi valued.

Parameters
$nodeThe Node that has the relation
$roleThe role of the relation

Definition at line 83 of file AbstractNodeSerializer.php.