| @@ 6430-6434 (lines=5) @@ | ||
| 6427 | if ($phpType === 'struct') { |
|
| 6428 | if (isset($typeDef['typeClass']) && $typeDef['typeClass'] === 'element') { |
|
| 6429 | $elementName = $uqType; |
|
| 6430 | if (isset($typeDef['form']) && ($typeDef['form'] === 'qualified')) { |
|
| 6431 | $elementNS = " xmlns=\"$ns\""; |
|
| 6432 | } else { |
|
| 6433 | $elementNS = " xmlns=\"\""; |
|
| 6434 | } |
|
| 6435 | } else { |
|
| 6436 | $elementName = $name; |
|
| 6437 | if ($unqualified) { |
|
| @@ 6487-6495 (lines=9) @@ | ||
| 6484 | $xml = ''; |
|
| 6485 | } |
|
| 6486 | } elseif ($phpType === 'array') { |
|
| 6487 | if (isset($typeDef['form']) && ($typeDef['form'] === 'qualified')) { |
|
| 6488 | $elementNS = " xmlns=\"$ns\""; |
|
| 6489 | } else { |
|
| 6490 | if ($unqualified) { |
|
| 6491 | $elementNS = " xmlns=\"\""; |
|
| 6492 | } else { |
|
| 6493 | $elementNS = ''; |
|
| 6494 | } |
|
| 6495 | } |
|
| 6496 | if (null === $value) { |
|
| 6497 | if ($use === 'literal') { |
|
| 6498 | // TODO: depends on minOccurs |
|
| @@ 6559-6567 (lines=9) @@ | ||
| 6556 | . "</$name>"; |
|
| 6557 | } |
|
| 6558 | } elseif ($phpType === 'scalar') { |
|
| 6559 | if (isset($typeDef['form']) && ($typeDef['form'] === 'qualified')) { |
|
| 6560 | $elementNS = " xmlns=\"$ns\""; |
|
| 6561 | } else { |
|
| 6562 | if ($unqualified) { |
|
| 6563 | $elementNS = " xmlns=\"\""; |
|
| 6564 | } else { |
|
| 6565 | $elementNS = ''; |
|
| 6566 | } |
|
| 6567 | } |
|
| 6568 | if ($use === 'literal') { |
|
| 6569 | if ($forceType) { |
|
| 6570 | $xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">$value</$name>"; |
|