| @@ 6015-6026 (lines=12) @@ | ||
| 6012 | } else { |
|
| 6013 | $elementNS = ''; |
|
| 6014 | } |
|
| 6015 | if (is_null($value)) { |
|
| 6016 | if ($use == 'literal') { |
|
| 6017 | // TODO: depends on minOccurs |
|
| 6018 | $xml = "<$name$elementNS/>"; |
|
| 6019 | } else { |
|
| 6020 | // TODO: depends on nillable, which should be checked before calling this method |
|
| 6021 | $xml = "<$name$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"/>"; |
|
| 6022 | } |
|
| 6023 | $this->debug("in serializeType: returning: $xml"); |
|
| 6024 | ||
| 6025 | return $xml; |
|
| 6026 | } |
|
| 6027 | if ($uqType == 'Array') { |
|
| 6028 | // JBoss/Axis does this sometimes |
|
| 6029 | return $this->serialize_val($value, $name, false, false, false, false, $use); |
|
| @@ 6140-6150 (lines=11) @@ | ||
| 6137 | $elementNS = ''; |
|
| 6138 | } |
|
| 6139 | } |
|
| 6140 | if (is_null($value)) { |
|
| 6141 | if ($use == 'literal') { |
|
| 6142 | // TODO: depends on minOccurs and nillable |
|
| 6143 | $xml = "<$elementName$elementNS/>"; |
|
| 6144 | } else { |
|
| 6145 | $xml = "<$elementName$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"/>"; |
|
| 6146 | } |
|
| 6147 | $this->debug("in serializeType: returning: $xml"); |
|
| 6148 | ||
| 6149 | return $xml; |
|
| 6150 | } |
|
| 6151 | if (is_object($value)) { |
|
| 6152 | $value = get_object_vars($value); |
|
| 6153 | } |
|