|
wCMF
3.6
|
Public Member Functions | |
| & | deserializeNode ($type, $data, $hasFlattendedValues, $parent=null) |
| deserializeValue (&$node, $key, $value, $dataType, $hasFlattendedValues) | |
| serializeNode (&$obj, $flattenValues) | |
| serializeAttribute (&$node, $valueName, $dataType, &$result, $flattenDataTypes) | |
| & | getArray () |
| & | getPathArray (&$array, $path, $curDepth) |
NodeSerializer provides helper functions to de-/serialize Nodes.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 31 of file class.NodeSerializer.php.
| & NodeSerializer::deserializeNode | ( | $type, | |
| $data, | |||
| $hasFlattendedValues, | |||
$parent = null |
|||
| ) |
Deserialize a Node from serialized data. Only values given in data are be set.
| type | The type the data belong to |
| data | The serialized node data (either as object or as array) |
| hasFlattendedValues | True if all node data is serialized into one array, false if there is an extra array 'values', that holds the data types and inside these the values |
| parent | The parent node [default: null] |
Definition at line 42 of file class.NodeSerializer.php.
References deserializeValue(), PersistenceFacade\getInstance(), and PersistenceFacade\isKnownType().
Referenced by SOAPFormat\deserializeNode(), JSONFormat\deserializeNode(), and deserializeValue().
Here is the call graph for this function:| NodeSerializer::deserializeValue | ( | & | $node, |
| $key, | |||
| $value, | |||
| $dataType, | |||
| $hasFlattendedValues | |||
| ) |
Deserialize an node value
| node | A reference to the node |
| key | The value name or type if value is an array |
| value | The value or child data, if value is an array |
| dataType | The dataType of the value |
| hasFlattendedValues |
Definition at line 108 of file class.NodeSerializer.php.
References deserializeNode().
Referenced by deserializeNode().
Here is the call graph for this function:| NodeSerializer::serializeNode | ( | & | $obj, |
| $flattenValues | |||
| ) |
Serialize a Node into an array
| obj | A reference to the node to serialize |
| flattenValues | True if all node data should be serialized into one array, false if there should be an extra array 'values', that holds the data types and inside these the values |
Definition at line 128 of file class.NodeSerializer.php.
References getArray(), RightsManager\getInstance(), and getPathArray().
Referenced by SOAPFormat\serializeNode(), and JSONFormat\serializeNode().
Here is the call graph for this function:| NodeSerializer::serializeAttribute | ( | & | $node, |
| $valueName, | |||
| $dataType, | |||
| & | $result, | ||
| $flattenDataTypes | |||
| ) |
Callback function for NodeProcessor (see NodeProcessor).
Definition at line 181 of file class.NodeSerializer.php.
| & NodeSerializer::getArray | ( | ) |
Definition at line 194 of file class.NodeSerializer.php.
Referenced by serializeNode().
| & NodeSerializer::getPathArray | ( | & | $array, |
| $path, | |||
| $curDepth | |||
| ) |
Definition at line 200 of file class.NodeSerializer.php.
Referenced by serializeNode().