@@ 6305-6316 (lines=12) @@ | ||
6302 | } else { |
|
6303 | $elementNS = ''; |
|
6304 | } |
|
6305 | if (null === $value) { |
|
6306 | if ($use === 'literal') { |
|
6307 | // TODO: depends on minOccurs |
|
6308 | $xml = "<$name$elementNS/>"; |
|
6309 | } else { |
|
6310 | // TODO: depends on nillable, which should be checked before calling this method |
|
6311 | $xml = "<$name$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"/>"; |
|
6312 | } |
|
6313 | $this->debug("in serializeType: returning: $xml"); |
|
6314 | ||
6315 | return $xml; |
|
6316 | } |
|
6317 | if ($uqType === 'Array') { |
|
6318 | // JBoss/Axis does this sometimes |
|
6319 | return $this->serialize_val($value, $name, false, false, false, false, $use); |
|
@@ 6430-6440 (lines=11) @@ | ||
6427 | $elementNS = ''; |
|
6428 | } |
|
6429 | } |
|
6430 | if (null === $value) { |
|
6431 | if ($use === 'literal') { |
|
6432 | // TODO: depends on minOccurs and nillable |
|
6433 | $xml = "<$elementName$elementNS/>"; |
|
6434 | } else { |
|
6435 | $xml = "<$elementName$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"/>"; |
|
6436 | } |
|
6437 | $this->debug("in serializeType: returning: $xml"); |
|
6438 | ||
6439 | return $xml; |
|
6440 | } |
|
6441 | if (is_object($value)) { |
|
6442 | $value = get_object_vars($value); |
|
6443 | } |