function XMLSchema::getPHPType in Salesforce Suite 5.2
Same name in this branch
- 5.2 includes/nusoap.php \XMLSchema::getPHPType()
- 5.2 includes/nusoap.orig.php \XMLSchema::getPHPType()
Same name and namespace in other branches
- 5 includes/nusoap.php \XMLSchema::getPHPType()
- 5 includes/nusoap.orig.php \XMLSchema::getPHPType()
get the PHP type of a user defined type in the schema PHP type is kind of a misnomer since it actually returns 'struct' for assoc. arrays returns false if no type exists, or not w/ the given namespace else returns a string that is either a native php type, or 'struct'
@access public
Parameters
string $type, name of defined type:
string $ns, namespace of type:
Return value
mixed
File
- includes/
nusoap.orig.php, line 1614
Class
- XMLSchema
- parses an XML Schema, allows access to it's data, other utility methods no validation... yet. very experimental and limited. As is discussed on XML-DEV, I'm one of the people that just doesn't have time to read the spec(s) thoroughly,…
Code
function getPHPType($type, $ns) {
if (isset($this->typemap[$ns][$type])) {
//print "found type '$type' and ns $ns in typemap<br>";
return $this->typemap[$ns][$type];
}
elseif (isset($this->complexTypes[$type])) {
//print "getting type '$type' and ns $ns from complexTypes array<br>";
return $this->complexTypes[$type]['phpType'];
}
return false;
}