Lines Matching refs:ns

436 			// need to fix this. shouldn't default to xsd if no ns specified
835 * @param string $ns The namespace
839 function getPrefixFromNamespace($ns) { argument
841 if ($ns == $n || $ns == $p) {
1594 foreach($this->imports as $ns => $list) {
1597 …$xml .= " <$schemaPrefix:import location=\"" . $ii['location'] . '" namespace="' . $ns . "\" />\n";
1599 $xml .= " <$schemaPrefix:import namespace=\"" . $ns . "\" />\n";
1693 foreach (array_diff($this->usedNamespaces, $this->enclosingNamespaces) as $nsp => $ns) {
1694 $el .= " xmlns:$nsp=\"$ns\"";
1717 * @param string $ns namespace of type
1722 function getPHPType($type,$ns){ argument
1723 if(isset($this->typemap[$ns][$type])){
1725 return $this->typemap[$ns][$type];
1773 …$ns = substr($this->simpleTypes[$type]['type'], 0, strrpos($this->simpleTypes[$type]['type'], ':')…
1792 $ns = substr($this->elements[$type]['type'], 0, strrpos($this->elements[$type]['type'], ':'));
1803 } elseif ($ns == 'http://www.w3.org/2001/XMLSchema') {
4618 foreach ($this->schemas as $ns => $list) {
4624 $this->schemas[$ns]->imports[$ns2][$ii]['loaded'] = true;
4647 foreach ($this->import as $ns => $list) {
4650 $this->import[$ns][$ii]['loaded'] = true;
5193 * @param string $ns namespace (not prefix) of the type
5198 function getTypeDef($type, $ns) { argument
5199 $this->debug("in getTypeDef: type=$type, ns=$ns");
5200 if ((! $ns) && isset($this->namespaces['tns'])) {
5201 $ns = $this->namespaces['tns'];
5202 $this->debug("in getTypeDef: type namespace forced to $ns");
5204 if (!isset($this->schemas[$ns])) {
5206 if (strcasecmp($ns, $ns0) == 0) {
5207 $this->debug("in getTypeDef: replacing schema namespace $ns with $ns0");
5208 $ns = $ns0;
5213 if (isset($this->schemas[$ns])) {
5214 $this->debug("in getTypeDef: have schema for namespace $ns");
5215 for ($i = 0; $i < count($this->schemas[$ns]); $i++) {
5216 $xs = &$this->schemas[$ns][$i];
5224 $ns = substr($t['type'], 0, strrpos($t['type'], ':'));
5225 $etype = $this->getTypeDef($uqType, $ns);
5244 $this->debug("in getTypeDef: do not have schema for namespace $ns");
5404 foreach($this->import as $ns => $list) {
5407 $xml .= '<import location="' . $ii['location'] . '" namespace="' . $ns . '" />';
5409 $xml .= '<import namespace="' . $ns . '" />';
5417 foreach ($this->schemas as $ns => $list) {
5437 foreach($this->typemap as $ns => $types) {
5439 $typePrefix = $this->getPrefixFromNamespace($ns);
5446 $ns = $this->getNamespaceFromPrefix($typePrefix);
5448 $typeDef = $this->getTypeDef($localPart, $ns);
5533 $ns = substr($type, 0, strrpos($type, ':'));
5534 $this->debug("in parametersMatchWrapped: got a prefixed type: $uqType, $ns");
5535 if ($this->getNamespaceFromPrefix($ns)) {
5536 $ns = $this->getNamespaceFromPrefix($ns);
5537 $this->debug("in parametersMatchWrapped: expanded prefixed type: $uqType, $ns");
5543 $ns = '';
5548 if (!$typeDef = $this->getTypeDef($uqType, $ns)) {
5559 …$this->debug("in parametersMatchWrapped: uqType: $uqType, ns: $ns, phptype: $phpType, arrayType: $…
5600 $this->debug("in parametersMatchWrapped: no elements type $ns:$uqType");
5853 …$xml = "<$name$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$u…
5886 if (!$this->getTypeDef($uqType, $ns)) {
5889 …$xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">$value</$…
5905 …$xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"$encodingS…
5911 } else if ($ns == 'http://xml.apache.org/xml-soap') {
5948 $ns = '';
5951 if(!$typeDef = $this->getTypeDef($uqType, $ns)){
5963 …$this->debug("in serializeType: uqType: $uqType, ns: $ns, phptype: $phpType, arrayType: " . (isset…
5969 $elementNS = " xmlns=\"$ns\"";
5986 …Name$elementNS xsi:nil=\"true\" xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"/>";
5995 $elementAttrs = $this->serializeComplexTypeAttributes($typeDef, $value, $ns, $uqType);
5998 …$xml = "<$elementName$elementNS$elementAttrs xsi:type=\"" . $this->getPrefixFromNamespace($ns) . "…
6003 …$xml = "<$elementName$elementNS$elementAttrs xsi:type=\"" . $this->getPrefixFromNamespace($ns) . "…
6006 … $xml .= $this->serializeComplexTypeElements($typeDef, $value, $ns, $uqType, $use, $encodingStyle);
6015 $elementNS = " xmlns=\"$ns\"";
6083 $elementNS = " xmlns=\"$ns\"";
6093 …$xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">$value</$…
6098 …$xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\"$encodingS…
6110 * @param string $ns the namespace of the type
6115 function serializeComplexTypeAttributes($typeDef, $value, $ns, $uqType) { argument
6118 $this->debug("serialize attributes for XML Schema type $ns:$uqType");
6124 $this->debug("value is neither an array nor an object for XML Schema type $ns:$uqType");
6147 $this->debug("no attributes to serialize for XML Schema type $ns:$uqType");
6150 $ns = $this->getPrefix($typeDef['extensionBase']);
6152 if ($this->getNamespaceFromPrefix($ns)) {
6153 $ns = $this->getNamespaceFromPrefix($ns);
6155 if ($typeDef = $this->getTypeDef($uqType, $ns)) {
6156 $this->debug("serialize attributes for extension base $ns:$uqType");
6157 $xml .= $this->serializeComplexTypeAttributes($typeDef, $value, $ns, $uqType);
6159 $this->debug("extension base $ns:$uqType is not a supported type");
6170 * @param string $ns the namespace of the type
6177 …function serializeComplexTypeElements($typeDef, $value, $ns, $uqType, $use='encoded', $encodingSty… argument
6180 …$this->debug("in serializeComplexTypeElements, serialize elements for XML Schema type $ns:$uqType"…
6186 $this->debug("value is neither an array nor an object for XML Schema type $ns:$uqType");
6247 $this->debug("no elements to serialize for XML Schema type $ns:$uqType");
6250 $ns = $this->getPrefix($typeDef['extensionBase']);
6252 if ($this->getNamespaceFromPrefix($ns)) {
6253 $ns = $this->getNamespaceFromPrefix($ns);
6255 if ($typeDef = $this->getTypeDef($uqType, $ns)) {
6256 $this->debug("serialize elements for extension base $ns:$uqType");
6257 … $xml .= $this->serializeComplexTypeElements($typeDef, $value, $ns, $uqType, $use, $encodingStyle);
6259 $this->debug("extension base $ns:$uqType is not a supported type");
7264 $nsPrefix = 'ns' . rand(1000, 9999);
7303 $nsPrefix = 'ns' . rand(1000, 9999);