|
@@ 6290-6302 (lines=13) @@
|
| 6287 |
|
function serializeComplexTypeAttributes($typeDef, $value, $ns, $uqType) { |
| 6288 |
|
$this->debug("serializeComplexTypeAttributes for XML Schema type $ns:$uqType"); |
| 6289 |
|
$xml = ''; |
| 6290 |
|
if (isset($typeDef['extensionBase'])) { |
| 6291 |
|
$nsx = $this->getPrefix($typeDef['extensionBase']); |
| 6292 |
|
$uqTypex = $this->getLocalPart($typeDef['extensionBase']); |
| 6293 |
|
if ($this->getNamespaceFromPrefix($nsx)) { |
| 6294 |
|
$nsx = $this->getNamespaceFromPrefix($nsx); |
| 6295 |
|
} |
| 6296 |
|
if ($typeDefx = $this->getTypeDef($uqTypex, $nsx)) { |
| 6297 |
|
$this->debug("serialize attributes for extension base $nsx:$uqTypex"); |
| 6298 |
|
$xml .= $this->serializeComplexTypeAttributes($typeDefx, $value, $nsx, $uqTypex); |
| 6299 |
|
} else { |
| 6300 |
|
$this->debug("extension base $nsx:$uqTypex is not a supported type"); |
| 6301 |
|
} |
| 6302 |
|
} |
| 6303 |
|
if (isset($typeDef['attrs']) && is_array($typeDef['attrs'])) { |
| 6304 |
|
$this->debug("serialize attributes for XML Schema type $ns:$uqType"); |
| 6305 |
|
if (is_array($value)) { |
|
@@ 6354-6366 (lines=13) @@
|
| 6351 |
|
function serializeComplexTypeElements($typeDef, $value, $ns, $uqType, $use='encoded', $encodingStyle=false) { |
| 6352 |
|
$this->debug("in serializeComplexTypeElements for XML Schema type $ns:$uqType"); |
| 6353 |
|
$xml = ''; |
| 6354 |
|
if (isset($typeDef['extensionBase'])) { |
| 6355 |
|
$nsx = $this->getPrefix($typeDef['extensionBase']); |
| 6356 |
|
$uqTypex = $this->getLocalPart($typeDef['extensionBase']); |
| 6357 |
|
if ($this->getNamespaceFromPrefix($nsx)) { |
| 6358 |
|
$nsx = $this->getNamespaceFromPrefix($nsx); |
| 6359 |
|
} |
| 6360 |
|
if ($typeDefx = $this->getTypeDef($uqTypex, $nsx)) { |
| 6361 |
|
$this->debug("serialize elements for extension base $nsx:$uqTypex"); |
| 6362 |
|
$xml .= $this->serializeComplexTypeElements($typeDefx, $value, $nsx, $uqTypex, $use, $encodingStyle); |
| 6363 |
|
} else { |
| 6364 |
|
$this->debug("extension base $nsx:$uqTypex is not a supported type"); |
| 6365 |
|
} |
| 6366 |
|
} |
| 6367 |
|
if (isset($typeDef['elements']) && is_array($typeDef['elements'])) { |
| 6368 |
|
$this->debug("in serializeComplexTypeElements, serialize elements for XML Schema type $ns:$uqType"); |
| 6369 |
|
if (is_array($value)) { |