@@ 57-72 (lines=16) @@ | ||
54 | return base64_decode((string)$data); |
|
55 | } |
|
56 | ||
57 | public function simpleListOfToXml(XmlSerializationVisitor $visitor, $object, array $type, Context $context) |
|
58 | { |
|
59 | ||
60 | $newType = array( |
|
61 | 'name' => $type["params"][0]["name"], |
|
62 | 'params' => array() |
|
63 | ); |
|
64 | ||
65 | $navigator = $context->getNavigator(); |
|
66 | $ret = array(); |
|
67 | foreach ($object as $v) { |
|
68 | $ret[] = $navigator->accept($v, $newType, $context)->data; |
|
69 | } |
|
70 | ||
71 | return $visitor->getDocument()->createTextNode(implode(" ", $ret)); |
|
72 | } |
|
73 | ||
74 | public function simpleListOfFromXml(XmlDeserializationVisitor $visitor, $node, array $type, Context $context) |
|
75 | { |
|
@@ 74-86 (lines=13) @@ | ||
71 | return $visitor->getDocument()->createTextNode(implode(" ", $ret)); |
|
72 | } |
|
73 | ||
74 | public function simpleListOfFromXml(XmlDeserializationVisitor $visitor, $node, array $type, Context $context) |
|
75 | { |
|
76 | $newType = array( |
|
77 | 'name' => $type["params"][0]["name"], |
|
78 | 'params' => array() |
|
79 | ); |
|
80 | $ret = array(); |
|
81 | $navigator = $context->getNavigator(); |
|
82 | foreach (explode(" ", (string)$node) as $v) { |
|
83 | $ret[] = $navigator->accept($v, $newType, $context); |
|
84 | } |
|
85 | return $ret; |
|
86 | } |
|
87 | } |
|
88 | ||
89 |