| @@ 6318-6329 (lines=12) @@ | ||
| 6315 | } else { |
|
| 6316 | $elementNS = ''; |
|
| 6317 | } |
|
| 6318 | if (null === $value) { |
|
| 6319 | if ($use === 'literal') { |
|
| 6320 | // TODO: depends on minOccurs |
|
| 6321 | $xml = "<$name$elementNS>"; |
|
| 6322 | } else { |
|
| 6323 | // TODO: depends on nillable, which should be checked before calling this method |
|
| 6324 | $xml = "<$name$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">"; |
|
| 6325 | } |
|
| 6326 | $this->debug("in serializeType: returning: $xml"); |
|
| 6327 | ||
| 6328 | return $xml; |
|
| 6329 | } |
|
| 6330 | if ($uqType === 'Array') { |
|
| 6331 | // JBoss/Axis does this sometimes |
|
| 6332 | return $this->serialize_val($value, $name, false, false, false, false, $use); |
|
| @@ 6443-6453 (lines=11) @@ | ||
| 6440 | $elementNS = ''; |
|
| 6441 | } |
|
| 6442 | } |
|
| 6443 | if (null === $value) { |
|
| 6444 | if ($use === 'literal') { |
|
| 6445 | // TODO: depends on minOccurs and nillable |
|
| 6446 | $xml = "<$elementName$elementNS>"; |
|
| 6447 | } else { |
|
| 6448 | $xml = "<$elementName$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">"; |
|
| 6449 | } |
|
| 6450 | $this->debug("in serializeType: returning: $xml"); |
|
| 6451 | ||
| 6452 | return $xml; |
|
| 6453 | } |
|
| 6454 | if (is_object($value)) { |
|
| 6455 | $value = get_object_vars($value); |
|
| 6456 | } |
|