| @@ 147-153 (lines=7) @@ | ||
| 144 | $result = []; |
|
| 145 | $ns = null; |
|
| 146 | ||
| 147 | if (strstr($sentAs, ':')) { |
|
| 148 | // Get namespace from the wire name |
|
| 149 | list($ns, $sentAs) = explode(':', $sentAs); |
|
| 150 | } else { |
|
| 151 | // Get namespace from data |
|
| 152 | $ns = $items->getData('xmlNs'); |
|
| 153 | } |
|
| 154 | ||
| 155 | if ($sentAs === null) { |
|
| 156 | // A general collection of nodes |
|
| @@ 189-193 (lines=5) @@ | ||
| 186 | $name = $property->getName(); |
|
| 187 | $sentAs = $property->getWireName(); |
|
| 188 | $knownProps[$sentAs] = 1; |
|
| 189 | if (strpos($sentAs, ':')) { |
|
| 190 | list($ns, $sentAs) = explode(':', $sentAs); |
|
| 191 | } else { |
|
| 192 | $ns = $property->getData('xmlNs'); |
|
| 193 | } |
|
| 194 | ||
| 195 | if ($property->getData('xmlAttribute')) { |
|
| 196 | // Handle XML attributes |
|