wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
class.SOAPFormat.php
Go to the documentation of this file.
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2014 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of any of the following licenses
7  * at your choice:
8  *
9  * - GNU Lesser General Public License (LGPL)
10  * http://www.gnu.org/licenses/lgpl.html
11  * - Eclipse Public License (EPL)
12  * http://www.eclipse.org/org/documents/epl-v10.php
13  *
14  * See the license.txt file distributed with this work for
15  * additional information.
16  *
17  * $Id: class.SOAPFormat.php 1462 2014-02-04 23:52:27Z iherwig $
18  */
19 require_once(BASE."wcmf/lib/model/class.NodeSerializer.php");
20 require_once(BASE."wcmf/lib/presentation/format/class.HierarchicalFormat.php");
21 
22 /**
23  * @class SOAPFormat
24  * @ingroup Format
25  * @brief SOAPFormat realizes the SOAP request/response format. Nodes are serialized
26  * into an array (the nusoap library creates the XML)
27  *
28  * @author ingo herwig <ingo@wemove.com>
29  */
31 {
32  /**
33  * @see HierarchicalFormat::isSerializedNode()
34  */
35  function isSerializedNode($key, &$value)
36  {
37  return (PersistenceFacade::isValidOID($key) &&
39  }
40 
41  /**
42  * @see HierarchicalFormat::serializeNode()
43  */
44  function serializeNode($key, &$value)
45  {
46  // use NodeSerializer to serialize
47  return NodeSerializer::serializeNode($value, true);
48  }
49  /**
50  * @see HierarchicalFormat::deserializeNode()
51  */
52  function &deserializeNode($key, &$value)
53  {
54  // use NodeSerializer to deserialize
55  $type = PersistenceFacade::getOIDParameter($key, 'type');
56  $node = &NodeSerializer::deserializeNode($type, $value, true);
57  return $node;
58  }
59 }
60 ?>
& deserializeNode($key, &$value)
& deserializeNode($type, $data, $hasFlattendedValues, $parent=null)
isSerializedNode($key, &$value)
SOAPFormat realizes the SOAP request/response format. Nodes are serialized into an array (the nusoap ...
serializeNode($key, &$value)
HierarchicalFormat maybe used as base class for formats that are able to represent hierarchical data ...
getOIDParameter($oid, $param, $validate=true)
serializeNode(&$obj, $flattenValues)