| @@ 6127-6131 (lines=5) @@ | ||
| 6124 | if ($phpType == 'struct') { |
|
| 6125 | if (isset($typeDef['typeClass']) && $typeDef['typeClass'] == 'element') { |
|
| 6126 | $elementName = $uqType; |
|
| 6127 | if (isset($typeDef['form']) && ($typeDef['form'] == 'qualified')) { |
|
| 6128 | $elementNS = " xmlns=\"$ns\""; |
|
| 6129 | } else { |
|
| 6130 | $elementNS = " xmlns=\"\""; |
|
| 6131 | } |
|
| 6132 | } else { |
|
| 6133 | $elementName = $name; |
|
| 6134 | if ($unqualified) { |
|
| @@ 6184-6192 (lines=9) @@ | ||
| 6181 | $xml = ''; |
|
| 6182 | } |
|
| 6183 | } elseif ($phpType == 'array') { |
|
| 6184 | if (isset($typeDef['form']) && ($typeDef['form'] == 'qualified')) { |
|
| 6185 | $elementNS = " xmlns=\"$ns\""; |
|
| 6186 | } else { |
|
| 6187 | if ($unqualified) { |
|
| 6188 | $elementNS = " xmlns=\"\""; |
|
| 6189 | } else { |
|
| 6190 | $elementNS = ''; |
|
| 6191 | } |
|
| 6192 | } |
|
| 6193 | if (is_null($value)) { |
|
| 6194 | if ($use == 'literal') { |
|
| 6195 | // TODO: depends on minOccurs |
|
| @@ 6253-6261 (lines=9) @@ | ||
| 6250 | ."</$name>"; |
|
| 6251 | } |
|
| 6252 | } elseif ($phpType == 'scalar') { |
|
| 6253 | if (isset($typeDef['form']) && ($typeDef['form'] == 'qualified')) { |
|
| 6254 | $elementNS = " xmlns=\"$ns\""; |
|
| 6255 | } else { |
|
| 6256 | if ($unqualified) { |
|
| 6257 | $elementNS = " xmlns=\"\""; |
|
| 6258 | } else { |
|
| 6259 | $elementNS = ''; |
|
| 6260 | } |
|
| 6261 | } |
|
| 6262 | if ($use == 'literal') { |
|
| 6263 | if ($forceType) { |
|
| 6264 | $xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">$value</$name>"; |
|