|
@@ 7305-7315 (lines=11) @@
|
| 7302 |
|
} elseif (isset($this->message[$pos]['cdata']) && trim($this->message[$pos]['cdata']) != '') { |
| 7303 |
|
if (isset($this->message[$pos]['type'])) { |
| 7304 |
|
$this->message[$pos]['xattrs']['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$pos]['type'], isset($this->message[$pos]['type_namespace']) ? $this->message[$pos]['type_namespace'] : ''); |
| 7305 |
|
} else { |
| 7306 |
|
$parent = $this->message[$pos]['parent']; |
| 7307 |
|
if (isset($this->message[$parent]['type']) && ($this->message[$parent]['type'] === 'array') |
| 7308 |
|
&& isset($this->message[$parent]['arrayType'])) { |
| 7309 |
|
$this->message[$pos]['xattrs']['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$parent]['arrayType'], isset($this->message[$parent]['arrayTypeNamespace']) ? $this->message[$parent]['arrayTypeNamespace'] : ''); |
| 7310 |
|
} else { |
| 7311 |
|
$this->message[$pos]['xattrs']['!'] = $this->message[$pos]['cdata']; |
| 7312 |
|
} |
| 7313 |
|
} |
| 7314 |
|
} |
| 7315 |
|
$this->message[$pos]['result'] = $this->message[$pos]['xattrs']; |
| 7316 |
|
// set value of simpleType (or nil complexType) |
| 7317 |
|
} else { |
| 7318 |
|
//$this->debug('adding data for scalar value '.$this->message[$pos]['name'].' of value '.$this->message[$pos]['cdata']); |
|
@@ 7323-7333 (lines=11) @@
|
| 7320 |
|
$this->message[$pos]['xattrs']['!'] = null; |
| 7321 |
|
} elseif (isset($this->message[$pos]['type'])) { |
| 7322 |
|
$this->message[$pos]['result'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$pos]['type'], isset($this->message[$pos]['type_namespace']) ? $this->message[$pos]['type_namespace'] : ''); |
| 7323 |
|
} else { |
| 7324 |
|
$parent = $this->message[$pos]['parent']; |
| 7325 |
|
if (isset($this->message[$parent]['type']) && ($this->message[$parent]['type'] === 'array') |
| 7326 |
|
&& isset($this->message[$parent]['arrayType'])) { |
| 7327 |
|
$this->message[$pos]['result'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$parent]['arrayType'], isset($this->message[$parent]['arrayTypeNamespace']) ? $this->message[$parent]['arrayTypeNamespace'] : ''); |
| 7328 |
|
} else { |
| 7329 |
|
$this->message[$pos]['result'] = $this->message[$pos]['cdata']; |
| 7330 |
|
} |
| 7331 |
|
} |
| 7332 |
|
|
| 7333 |
|
/* add value to parent's result, if parent is struct/array |
| 7334 |
|
$parent = $this->message[$pos]['parent']; |
| 7335 |
|
if ($this->message[$parent]['type'] != 'map') { |
| 7336 |
|
if (strtolower($this->message[$parent]['type']) == 'array') { |