Lines Matching refs:ns

408 			// need to fix this. shouldn't default to xsd if no ns specified
768 * @param string $ns The namespace
772 function getPrefixFromNamespace($ns) { argument
774 if ($ns == $n || $ns == $p) {
1496 foreach($this->imports as $ns => $list) {
1499 …$xml .= " <$schemaPrefix:import location=\"" . $ii['location'] . '" namespace="' . $ns . "\" />\n";
1501 $xml .= " <$schemaPrefix:import namespace=\"" . $ns . "\" />\n";
1589 foreach (array_diff($this->usedNamespaces, $this->enclosingNamespaces) as $nsp => $ns) {
1590 $el .= " xmlns:$nsp=\"$ns\"\n";
1613 * @param string $ns, namespace of type
1618 function getPHPType($type,$ns){ argument
1619 if(isset($this->typemap[$ns][$type])){
1621 return $this->typemap[$ns][$type];
1662 …$ns = substr($this->simpleTypes[$type]['type'], 0, strrpos($this->simpleTypes[$type]['type'], ':')…
1681 $ns = substr($this->elements[$type]['type'], 0, strrpos($this->elements[$type]['type'], ':'));
1692 } elseif ($ns == 'http://www.w3.org/2001/XMLSchema') {
4145 foreach ($this->schemas as $ns => $list) {
4151 $this->schemas[$ns]->imports[$ns2][$ii]['loaded'] = true;
4174 foreach ($this->import as $ns => $list) {
4177 $this->import[$ns][$ii]['loaded'] = true;
4894 foreach($this->import as $ns => $list) {
4897 $xml .= '<import location="' . $ii['location'] . '" namespace="' . $ns . '" />';
4899 $xml .= '<import namespace="' . $ns . '" />';
4907 foreach ($this->schemas as $ns => $list) {
4927 foreach($this->typemap as $ns => $types) {
4929 $typePrefix = $this->getPrefixFromNamespace($ns);
4936 $ns = $this->getNamespaceFromPrefix($typePrefix);
4937 $typeDef = $this->getTypeDef($this->getLocalPart($partType), $ns);
5235 …$xml = "<$name$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$u…
5256 if (!$this->getTypeDef($uqType, $ns)) {
5259 …$xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">$value</$…
5264 …$xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"$encodingS…
5270 } else if ($ns == 'http://xml.apache.org/xml-soap') {
5307 $ns = '';
5310 if(!$typeDef = $this->getTypeDef($uqType, $ns)){
5319 …$this->debug("in serializeType: uqType: $uqType, ns: $ns, phptype: $phpType, arrayType: " . (isset…
5325 $elementNS = " xmlns=\"$ns\"";
5342 …Name$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"/>";
5351 $elementAttrs = $this->serializeComplexTypeAttributes($typeDef, $value, $ns, $uqType);
5354 …$xml = "<$elementName$elementNS$elementAttrs xsi:type=\"" . $this->getPrefixFromNamespace($ns) . "…
5359 …$xml = "<$elementName$elementNS$elementAttrs xsi:type=\"" . $this->getPrefixFromNamespace($ns) . "…
5362 … $xml .= $this->serializeComplexTypeElements($typeDef, $value, $ns, $uqType, $use, $encodingStyle);
5371 $elementNS = " xmlns=\"$ns\"";
5439 $elementNS = " xmlns=\"$ns\"";
5449 …$xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">$value</$…
5454 …$xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"$encodingS…
5466 * @param string $ns the namespace of the type
5471 function serializeComplexTypeAttributes($typeDef, $value, $ns, $uqType) { argument
5474 $this->debug("serialize attributes for XML Schema type $ns:$uqType");
5480 $this->debug("value is neither an array nor an object for XML Schema type $ns:$uqType");
5503 $this->debug("no attributes to serialize for XML Schema type $ns:$uqType");
5506 $ns = $this->getPrefix($typeDef['extensionBase']);
5508 if ($this->getNamespaceFromPrefix($ns)) {
5509 $ns = $this->getNamespaceFromPrefix($ns);
5511 if ($typeDef = $this->getTypeDef($uqType, $ns)) {
5512 $this->debug("serialize attributes for extension base $ns:$uqType");
5513 $xml .= $this->serializeComplexTypeAttributes($typeDef, $value, $ns, $uqType);
5515 $this->debug("extension base $ns:$uqType is not a supported type");
5526 * @param string $ns the namespace of the type
5533 …function serializeComplexTypeElements($typeDef, $value, $ns, $uqType, $use='encoded', $encodingSty… argument
5536 …$this->debug("in serializeComplexTypeElements, serialize elements for XML Schema type $ns:$uqType"…
5542 $this->debug("value is neither an array nor an object for XML Schema type $ns:$uqType");
5603 $this->debug("no elements to serialize for XML Schema type $ns:$uqType");
5606 $ns = $this->getPrefix($typeDef['extensionBase']);
5608 if ($this->getNamespaceFromPrefix($ns)) {
5609 $ns = $this->getNamespaceFromPrefix($ns);
5611 if ($typeDef = $this->getTypeDef($uqType, $ns)) {
5612 $this->debug("serialize elements for extension base $ns:$uqType");
5613 … $xml .= $this->serializeComplexTypeElements($typeDef, $value, $ns, $uqType, $use, $encodingStyle);
5615 $this->debug("extension base $ns:$uqType is not a supported type");
6578 $nsPrefix = 'ns' . rand(1000, 9999);
6617 $nsPrefix = 'ns' . rand(1000, 9999);