ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
nusoap_xmlschema Class Reference

parses an XML Schema, allows access to it's data, other utility methods. More...

+ Inheritance diagram for nusoap_xmlschema:
+ Collaboration diagram for nusoap_xmlschema:

Public Member Functions

 __construct ($schema='', $xml='', $namespaces=array())
 constructor More...
 
 parseFile ($xml, $type)
 parse an XML file More...
 
 parseString ($xml, $type)
 parse an XML string More...
 
 CreateTypeName ($ename)
 gets a type name for an unnamed type More...
 
 schemaStartElement ($parser, $name, $attrs)
 start-element handler More...
 
 schemaEndElement ($parser, $name)
 end-element handler More...
 
 schemaCharacterData ($parser, $data)
 element content handler More...
 
 serializeSchema ()
 serialize the schema More...
 
 xdebug ($string)
 adds debug data to the clas level debug string More...
 
 getPHPType ($type, $ns)
 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. More...
 
 getTypeDef ($type)
 returns an associative array of information about a given type returns false if no type exists by the given name More...
 
 serializeTypeDef ($type)
 returns a sample serialization of a given type, or false if no type by the given name More...
 
 typeToForm ($name, $type)
 returns HTML form elements that allow a user to enter values for creating an instance of the given type. More...
 
 addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='')
 adds a complex type to the schema More...
 
 addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array())
 adds a simple type to the schema More...
 
 addElement ($attrs)
 adds an element to the schema More...
 
- Public Member Functions inherited from nusoap_base
 __construct ()
 constructor More...
 
 getGlobalDebugLevel ()
 gets the global debug level, which applies to future instances More...
 
 setGlobalDebugLevel ($level)
 sets the global debug level, which applies to future instances More...
 
 getDebugLevel ()
 gets the debug level for this instance More...
 
 setDebugLevel ($level)
 sets the debug level for this instance More...
 
 debug ($string)
 adds debug data to the instance debug string with formatting More...
 
 appendDebug ($string)
 adds debug data to the instance debug string without formatting More...
 
 clearDebug ()
 clears the current debug data for this instance More...
 
getDebug ()
 gets the current debug data for this instance More...
 
getDebugAsXMLComment ()
 gets the current debug data for this instance as an XML comment this may change the contents of the debug data More...
 
 expandEntities ($val)
 expands entities, e.g. More...
 
 getError ()
 returns error string if present More...
 
 setError ($str)
 sets error string More...
 
 isArraySimpleOrStruct ($val)
 detect if array is a simple array or a struct (associative array) More...
 
 serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false)
 serializes PHP values in accordance w/ section 5. More...
 
 serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/')
 serializes a message More...
 
 formatDump ($str)
 formats a string to be inserted into an HTML stream More...
 
 contractQname ($qname)
 contracts (changes namespace to prefix) a qualified name More...
 
 expandQname ($qname)
 expands (changes prefix to namespace) a qualified name More...
 
 getLocalPart ($str)
 returns the local part of a prefixed string returns the original string, if not prefixed More...
 
 getPrefix ($str)
 returns the prefix part of a prefixed string returns false, if not prefixed More...
 
 getNamespaceFromPrefix ($prefix)
 pass it a prefix, it returns a namespace More...
 
 getPrefixFromNamespace ($ns)
 returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace More...
 
 getmicrotime ()
 returns the time in ODBC canonical form with microseconds More...
 
 varDump ($data)
 Returns a string with the output of var_dump. More...
 
 __toString ()
 represents the object as a string More...
 

Data Fields

 $schema = ''
 
 $xml = ''
 
 $enclosingNamespaces
 
 $schemaInfo = array()
 
 $schemaTargetNamespace = ''
 
 $attributes = array()
 
 $complexTypes = array()
 
 $complexTypeStack = array()
 
 $currentComplexType = null
 
 $elements = array()
 
 $elementStack = array()
 
 $currentElement = null
 
 $simpleTypes = array()
 
 $simpleTypeStack = array()
 
 $currentSimpleType = null
 
 $imports = array()
 
 $parser
 
 $position = 0
 
 $depth = 0
 
 $depth_array = array()
 
 $message = array()
 
 $defaultNamespace = array()
 
- Data Fields inherited from nusoap_base
 $title = 'NuSOAP'
 
 $version = '0.7.3'
 
 $revision = '$Revision$'
 
 $error_str = ''
 
 $debug_str = ''
 
 $charencoding = true
 
 $debugLevel
 
 $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema'
 
 $soap_defencoding = 'UTF-8'
 
 $namespaces
 
 $usedNamespaces = array()
 
 $typemap
 
 $xmlEntities
 

Detailed Description

parses an XML Schema, allows access to it's data, other utility methods.

imperfect, no validation... yet, but quite functional.

Author
Dietrich Ayala dietr.nosp@m.ich@.nosp@m.ganx4.nosp@m..com
Scott Nichol snich.nosp@m.ol@u.nosp@m.sers..nosp@m.sour.nosp@m.cefor.nosp@m.ge.n.nosp@m.et
Version
$Id$ public

Definition at line 1127 of file nusoap.php.

Constructor & Destructor Documentation

◆ __construct()

nusoap_xmlschema::__construct (   $schema = '',
  $xml = '',
  $namespaces = array() 
)

constructor

Parameters
string$schemaschema document URI
string$xmlxml document URI
string$namespacesnamespaces defined in enclosing XML public

Definition at line 1166 of file nusoap.php.

References nusoap_base\$namespaces, ILIAS\MetaData\Repository\Validation\Data\__construct(), and nusoap_base\debug().

1167  {
1169  $this->debug('nusoap_xmlschema class instantiated, inside constructor');
1170  // files
1171  $this->schema = $schema;
1172  $this->xml = $xml;
1173 
1174  // namespaces
1175  $this->enclosingNamespaces = $namespaces;
1176  $this->namespaces = array_merge($this->namespaces, $namespaces);
1177 
1178  // parse schema file
1179  if ($schema != '') {
1180  $this->debug('initial schema file: ' . $schema);
1181  $this->parseFile($schema, 'schema');
1182  }
1183 
1184  // parse xml file
1185  if ($xml != '') {
1186  $this->debug('initial xml file: ' . $xml);
1187  $this->parseFile($xml, 'xml');
1188  }
1189  }
parseFile($xml, $type)
parse an XML file
Definition: nusoap.php:1199
debug($string)
adds debug data to the instance debug string with formatting
Definition: nusoap.php:292
__construct(VocabulariesInterface $vocabularies)
+ Here is the call graph for this function:

Member Function Documentation

◆ addComplexType()

nusoap_xmlschema::addComplexType (   $name,
  $typeClass = 'complexType',
  $phpType = 'array',
  $compositor = '',
  $restrictionBase = '',
  $elements = array(),
  $attrs = array(),
  $arrayType = '' 
)

adds a complex type to the schema

example: array

addType( 'ArrayOfstring', 'complexType', 'array', '', 'SOAP-ENC:Array', array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'string[]'), 'xsd:string' );

example: PHP associative array ( SOAP Struct )

addType( 'SOAPStruct', 'complexType', 'struct', 'all', array('myVar'=> array('name'=>'myVar','type'=>'string') );

Parameters
name
typeClass(complexType|simpleType|attribute)
phpTypecurrently supported are array and struct (php assoc array)
compositor(all|sequence|choice)
restrictionBasenamespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
elements= array ( name = array(name=>'',type=>'') )
attrs= array( array( 'ref' => "http://schemas.xmlsoap.org/soap/encoding/:arrayType", "http://schemas.xmlsoap.org/wsdl/:arrayType" => "string[]" ) )
arrayTypenamespace:name (http://www.w3.org/2001/XMLSchema:string) public
See also
getTypeDef

Definition at line 1994 of file nusoap.php.

References nusoap_base\appendDebug(), and nusoap_base\varDump().

1995  {
1996  $this->complexTypes[$name] = array(
1997  'name' => $name,
1998  'typeClass' => $typeClass,
1999  'phpType' => $phpType,
2000  'compositor'=> $compositor,
2001  'restrictionBase' => $restrictionBase,
2002  'elements' => $elements,
2003  'attrs' => $attrs,
2004  'arrayType' => $arrayType
2005  );
2006 
2007  $this->xdebug("addComplexType $name:");
2008  $this->appendDebug($this->varDump($this->complexTypes[$name]));
2009  }
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:305
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1756
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:909
+ Here is the call graph for this function:

◆ addElement()

nusoap_xmlschema::addElement (   $attrs)

adds an element to the schema

Parameters
array$attrsattributes that must include name and type
See also
nusoap_xmlschema public

Definition at line 2044 of file nusoap.php.

References nusoap_base\appendDebug(), nusoap_base\getPrefix(), and nusoap_base\varDump().

2045  {
2046  if (! $this->getPrefix($attrs['type'])) {
2047  $attrs['type'] = $this->schemaTargetNamespace . ':' . $attrs['type'];
2048  }
2049  $this->elements[ $attrs['name'] ] = $attrs;
2050  $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
2051 
2052  $this->xdebug("addElement " . $attrs['name']);
2053  $this->appendDebug($this->varDump($this->elements[ $attrs['name'] ]));
2054  }
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:305
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1756
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:909
getPrefix($str)
returns the prefix part of a prefixed string returns false, if not prefixed
Definition: nusoap.php:839
+ Here is the call graph for this function:

◆ addSimpleType()

nusoap_xmlschema::addSimpleType (   $name,
  $restrictionBase = '',
  $typeClass = 'simpleType',
  $phpType = 'scalar',
  $enumeration = array() 
)

adds a simple type to the schema

Parameters
string$name
string$restrictionBasenamespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
string$typeClass(should always be simpleType)
string$phpType(should always be scalar)
array$enumerationarray of values public
See also
nusoap_xmlschema
getTypeDef

Definition at line 2023 of file nusoap.php.

References nusoap_base\appendDebug(), and nusoap_base\varDump().

2024  {
2025  $this->simpleTypes[$name] = array(
2026  'name' => $name,
2027  'typeClass' => $typeClass,
2028  'phpType' => $phpType,
2029  'type' => $restrictionBase,
2030  'enumeration' => $enumeration
2031  );
2032 
2033  $this->xdebug("addSimpleType $name:");
2034  $this->appendDebug($this->varDump($this->simpleTypes[$name]));
2035  }
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:305
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1756
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:909
+ Here is the call graph for this function:

◆ CreateTypeName()

nusoap_xmlschema::CreateTypeName (   $ename)

gets a type name for an unnamed type

Parameters
stringElement name
Returns
string A type name for an unnamed type private

Definition at line 1274 of file nusoap.php.

References $scope.

1275  {
1276  $scope = '';
1277  for ($i = 0; $i < count($this->complexTypeStack); $i++) {
1278  $scope .= $this->complexTypeStack[$i] . '_';
1279  }
1280  return $scope . $ename . '_ContainedType';
1281  }
$scope
Definition: ltiregstart.php:53

◆ getPHPType()

nusoap_xmlschema::getPHPType (   $type,
  $ns 
)

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'

Parameters
string$typename of defined type
string$nsnamespace of type
Returns
mixed public
Deprecated:

Definition at line 1773 of file nusoap.php.

1774  {
1775  if (isset($this->typemap[$ns][$type])) {
1776  //print "found type '$type' and ns $ns in typemap<br>";
1777  return $this->typemap[$ns][$type];
1778  } elseif (isset($this->complexTypes[$type])) {
1779  //print "getting type '$type' and ns $ns from complexTypes array<br>";
1780  return $this->complexTypes[$type]['phpType'];
1781  }
1782  return false;
1783  }

◆ getTypeDef()

nusoap_xmlschema::getTypeDef (   $type)

returns an associative array of information about a given type returns false if no type exists by the given name

For a complexType typeDef = array( 'restrictionBase' => '', 'phpType' => '', 'compositor' => '(sequence|all)', 'elements' => array(), // refs to elements array 'attrs' => array() // refs to attributes array ... and so on (see addComplexType) )

For simpleType or element, the array has different keys.

Parameters
string$type
Returns
mixed public
See also
addComplexType
addSimpleType
addElement

Definition at line 1807 of file nusoap.php.

References nusoap_base\varDump().

1808  {
1809  //$this->debug("in getTypeDef for type $type");
1810  if (substr($type, -1) == '^') {
1811  $is_element = 1;
1812  $type = substr($type, 0, -1);
1813  } else {
1814  $is_element = 0;
1815  }
1816 
1817  if ((! $is_element) && isset($this->complexTypes[$type])) {
1818  $this->xdebug("in getTypeDef, found complexType $type");
1819  return $this->complexTypes[$type];
1820  } elseif ((! $is_element) && isset($this->simpleTypes[$type])) {
1821  $this->xdebug("in getTypeDef, found simpleType $type");
1822  if (!isset($this->simpleTypes[$type]['phpType'])) {
1823  // get info for type to tack onto the simple type
1824  // TODO: can this ever really apply (i.e. what is a simpleType really?)
1825  $uqType = substr($this->simpleTypes[$type]['type'], strrpos($this->simpleTypes[$type]['type'], ':') + 1);
1826  $ns = substr($this->simpleTypes[$type]['type'], 0, strrpos($this->simpleTypes[$type]['type'], ':'));
1827  $etype = $this->getTypeDef($uqType);
1828  if ($etype) {
1829  $this->xdebug("in getTypeDef, found type for simpleType $type:");
1830  $this->xdebug($this->varDump($etype));
1831  if (isset($etype['phpType'])) {
1832  $this->simpleTypes[$type]['phpType'] = $etype['phpType'];
1833  }
1834  if (isset($etype['elements'])) {
1835  $this->simpleTypes[$type]['elements'] = $etype['elements'];
1836  }
1837  }
1838  }
1839  return $this->simpleTypes[$type];
1840  } elseif (isset($this->elements[$type])) {
1841  $this->xdebug("in getTypeDef, found element $type");
1842  if (!isset($this->elements[$type]['phpType'])) {
1843  // get info for type to tack onto the element
1844  $uqType = substr($this->elements[$type]['type'], strrpos($this->elements[$type]['type'], ':') + 1);
1845  $ns = substr($this->elements[$type]['type'], 0, strrpos($this->elements[$type]['type'], ':'));
1846  $etype = $this->getTypeDef($uqType);
1847  if ($etype) {
1848  $this->xdebug("in getTypeDef, found type for element $type:");
1849  $this->xdebug($this->varDump($etype));
1850  if (isset($etype['phpType'])) {
1851  $this->elements[$type]['phpType'] = $etype['phpType'];
1852  }
1853  if (isset($etype['elements'])) {
1854  $this->elements[$type]['elements'] = $etype['elements'];
1855  }
1856  } elseif ($ns == 'http://www.w3.org/2001/XMLSchema') {
1857  $this->xdebug("in getTypeDef, element $type is an XSD type");
1858  $this->elements[$type]['phpType'] = 'scalar';
1859  }
1860  }
1861  return $this->elements[$type];
1862  } elseif (isset($this->attributes[$type])) {
1863  $this->xdebug("in getTypeDef, found attribute $type");
1864  return $this->attributes[$type];
1865  } elseif (preg_match('/_ContainedType$/', $type)) {
1866  $this->xdebug("in getTypeDef, have an untyped element $type");
1867  $typeDef['typeClass'] = 'simpleType';
1868  $typeDef['phpType'] = 'scalar';
1869  $typeDef['type'] = 'http://www.w3.org/2001/XMLSchema:string';
1870  return $typeDef;
1871  }
1872  $this->xdebug("in getTypeDef, did not find $type");
1873  return false;
1874  }
getTypeDef($type)
returns an associative array of information about a given type returns false if no type exists by the...
Definition: nusoap.php:1807
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1756
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:909
+ Here is the call graph for this function:

◆ parseFile()

nusoap_xmlschema::parseFile (   $xml,
  $type 
)

parse an XML file

Parameters
string$xmlpath/URL to XML file
string$type(schema | xml)
Returns
boolean public

Definition at line 1199 of file nusoap.php.

References nusoap_base\debug(), and nusoap_base\setError().

1200  {
1201  // parse xml file
1202  if ($xml != "") {
1203  $xmlStr = @join("", @file($xml));
1204  if ($xmlStr == "") {
1205  $msg = 'Error reading XML from ' . $xml;
1206  $this->setError($msg);
1207  $this->debug($msg);
1208  return false;
1209  } else {
1210  $this->debug("parsing $xml");
1211  $this->parseString($xmlStr, $type);
1212  $this->debug("done parsing $xml");
1213  return true;
1214  }
1215  }
1216  return false;
1217  }
setError($str)
sets error string
Definition: nusoap.php:395
parseString($xml, $type)
parse an XML string
Definition: nusoap.php:1226
debug($string)
adds debug data to the instance debug string with formatting
Definition: nusoap.php:292
+ Here is the call graph for this function:

◆ parseString()

nusoap_xmlschema::parseString (   $xml,
  $type 
)

parse an XML string

Parameters
string$xmlpath or URL
string$type(schema|xml) private

Definition at line 1226 of file nusoap.php.

References nusoap_base\debug(), and nusoap_base\setError().

1227  {
1228  // parse xml string
1229  if ($xml != "") {
1230  // Create an XML parser.
1231  $this->parser = xml_parser_create();
1232  // Set the options for parsing the XML data.
1233  xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0);
1234 
1235  // Set the object for the parser.
1236  xml_set_object($this->parser, $this);
1237 
1238  // Set the element handlers for the parser.
1239  if ($type == "schema") {
1240  xml_set_element_handler($this->parser, 'schemaStartElement', 'schemaEndElement');
1241  xml_set_character_data_handler($this->parser, 'schemaCharacterData');
1242  } elseif ($type == "xml") {
1243  xml_set_element_handler($this->parser, 'xmlStartElement', 'xmlEndElement');
1244  xml_set_character_data_handler($this->parser, 'xmlCharacterData');
1245  }
1246 
1247  // Parse the XML file.
1248  if (!xml_parse($this->parser, $xml, true)) {
1249  // Display an error message.
1250  $errstr = sprintf(
1251  'XML error parsing XML schema on line %d: %s',
1252  xml_get_current_line_number($this->parser),
1253  xml_error_string(xml_get_error_code($this->parser))
1254  );
1255  $this->debug($errstr);
1256  $this->debug("XML payload:\n" . $xml);
1257  $this->setError($errstr);
1258  }
1259 
1260  xml_parser_free($this->parser);
1261  } else {
1262  $this->debug('no xml passed to parseString()!!');
1263  $this->setError('no xml passed to parseString()!!');
1264  }
1265  }
setError($str)
sets error string
Definition: nusoap.php:395
debug($string)
adds debug data to the instance debug string with formatting
Definition: nusoap.php:292
+ Here is the call graph for this function:

◆ schemaCharacterData()

nusoap_xmlschema::schemaCharacterData (   $parser,
  $data 
)

element content handler

Parameters
string$parserXML parser object
string$dataelement content private

Definition at line 1627 of file nusoap.php.

References $data.

1628  {
1629  $pos = $this->depth_array[$this->depth - 1];
1630  $this->message[$pos]['cdata'] .= $data;
1631  }

◆ schemaEndElement()

nusoap_xmlschema::schemaEndElement (   $parser,
  $name 
)

end-element handler

Parameters
string$parserXML parser object
string$nameelement name private

Definition at line 1589 of file nusoap.php.

References nusoap_base\getLocalPart(), and nusoap_base\getPrefix().

1590  {
1591  // bring depth down a notch
1592  $this->depth--;
1593  // position of current element is equal to the last value left in depth_array for my depth
1594  if (isset($this->depth_array[$this->depth])) {
1595  $pos = $this->depth_array[$this->depth];
1596  }
1597  // get element prefix
1598  if ($prefix = $this->getPrefix($name)) {
1599  // get unqualified name
1600  $name = $this->getLocalPart($name);
1601  } else {
1602  $prefix = '';
1603  }
1604  // move on...
1605  if ($name == 'complexType') {
1606  $this->xdebug('done processing complexType ' . ($this->currentComplexType ? $this->currentComplexType : '(unknown)'));
1607  $this->currentComplexType = array_pop($this->complexTypeStack);
1608  //$this->currentElement = false;
1609  }
1610  if ($name == 'element') {
1611  $this->xdebug('done processing element ' . ($this->currentElement ? $this->currentElement : '(unknown)'));
1612  $this->currentElement = array_pop($this->elementStack);
1613  }
1614  if ($name == 'simpleType') {
1615  $this->xdebug('done processing simpleType ' . ($this->currentSimpleType ? $this->currentSimpleType : '(unknown)'));
1616  $this->currentSimpleType = array_pop($this->simpleTypeStack);
1617  }
1618  }
getLocalPart($str)
returns the local part of a prefixed string returns the original string, if not prefixed ...
Definition: nusoap.php:821
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1756
getPrefix($str)
returns the prefix part of a prefixed string returns false, if not prefixed
Definition: nusoap.php:839
+ Here is the call graph for this function:

◆ schemaStartElement()

nusoap_xmlschema::schemaStartElement (   $parser,
  $name,
  $attrs 
)

start-element handler

Parameters
string$parserXML parser object
string$nameelement name
string$attrsassociative array of attributes private

Definition at line 1291 of file nusoap.php.

References nusoap_base\appendDebug(), nusoap_base\expandQname(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), and nusoap_base\varDump().

1292  {
1293 
1294  // position in the total number of elements, starting from 0
1295  $pos = $this->position++;
1296  $depth = $this->depth++;
1297  // set self as current value for this depth
1298  $this->depth_array[$depth] = $pos;
1299  $this->message[$pos] = array('cdata' => '');
1300  if ($depth > 0) {
1301  $this->defaultNamespace[$pos] = $this->defaultNamespace[$this->depth_array[$depth - 1]];
1302  } else {
1303  $this->defaultNamespace[$pos] = false;
1304  }
1305 
1306  // get element prefix
1307  if ($prefix = $this->getPrefix($name)) {
1308  // get unqualified name
1309  $name = $this->getLocalPart($name);
1310  } else {
1311  $prefix = '';
1312  }
1313 
1314  // loop thru attributes, expanding, and registering namespace declarations
1315  if (count($attrs) > 0) {
1316  foreach ($attrs as $k => $v) {
1317  // if ns declarations, add to class level array of valid namespaces
1318  if (preg_match('/^xmlns/', $k)) {
1319  //$this->xdebug("$k: $v");
1320  //$this->xdebug('ns_prefix: '.$this->getPrefix($k));
1321  if ($ns_prefix = substr(strrchr($k, ':'), 1)) {
1322  //$this->xdebug("Add namespace[$ns_prefix] = $v");
1323  $this->namespaces[$ns_prefix] = $v;
1324  } else {
1325  $this->defaultNamespace[$pos] = $v;
1326  if (! $this->getPrefixFromNamespace($v)) {
1327  $this->namespaces['ns' . (count($this->namespaces)+1)] = $v;
1328  }
1329  }
1330  if ($v == 'http://www.w3.org/2001/XMLSchema' || $v == 'http://www.w3.org/1999/XMLSchema' || $v == 'http://www.w3.org/2000/10/XMLSchema') {
1331  $this->XMLSchemaVersion = $v;
1332  $this->namespaces['xsi'] = $v . '-instance';
1333  }
1334  }
1335  }
1336  foreach ($attrs as $k => $v) {
1337  // expand each attribute
1338  $k = strpos($k, ':') ? $this->expandQname($k) : $k;
1339  $v = strpos($v, ':') ? $this->expandQname($v) : $v;
1340  $eAttrs[$k] = $v;
1341  }
1342  $attrs = $eAttrs;
1343  } else {
1344  $attrs = array();
1345  }
1346  // find status, register data
1347  switch ($name) {
1348  case 'all': // (optional) compositor content for a complexType
1349  case 'choice':
1350  case 'group':
1351  case 'sequence':
1352  //$this->xdebug("compositor $name for currentComplexType: $this->currentComplexType and currentElement: $this->currentElement");
1353  $this->complexTypes[$this->currentComplexType]['compositor'] = $name;
1354  //if($name == 'all' || $name == 'sequence'){
1355  // $this->complexTypes[$this->currentComplexType]['phpType'] = 'struct';
1356  //}
1357  break;
1358  case 'attribute': // complexType attribute
1359  //$this->xdebug("parsing attribute $attrs[name] $attrs[ref] of value: ".$attrs['http://schemas.xmlsoap.org/wsdl/:arrayType']);
1360  $this->xdebug("parsing attribute:");
1361  $this->appendDebug($this->varDump($attrs));
1362  if (!isset($attrs['form'])) {
1363  $attrs['form'] = $this->schemaInfo['attributeFormDefault'];
1364  }
1365  if (isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])) {
1366  $v = $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
1367  if (!strpos($v, ':')) {
1368  // no namespace in arrayType attribute value...
1369  if ($this->defaultNamespace[$pos]) {
1370  // ...so use the default
1371  $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'] = $this->defaultNamespace[$pos] . ':' . $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
1372  }
1373  }
1374  }
1375  if (isset($attrs['name'])) {
1376  $this->attributes[$attrs['name']] = $attrs;
1377  $aname = $attrs['name'];
1378  } elseif (isset($attrs['ref']) && $attrs['ref'] == 'http://schemas.xmlsoap.org/soap/encoding/:arrayType') {
1379  if (isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])) {
1380  $aname = $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
1381  } else {
1382  $aname = '';
1383  }
1384  } elseif (isset($attrs['ref'])) {
1385  $aname = $attrs['ref'];
1386  $this->attributes[$attrs['ref']] = $attrs;
1387  }
1388 
1389  if ($this->currentComplexType) { // This should *always* be
1390  $this->complexTypes[$this->currentComplexType]['attrs'][$aname] = $attrs;
1391  }
1392  // arrayType attribute
1393  if (isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType']) || $this->getLocalPart($aname) == 'arrayType') {
1394  $this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
1395  $prefix = $this->getPrefix($aname);
1396  if (isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])) {
1397  $v = $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
1398  } else {
1399  $v = '';
1400  }
1401  if (strpos($v, '[,]')) {
1402  $this->complexTypes[$this->currentComplexType]['multidimensional'] = true;
1403  }
1404  $v = substr($v, 0, strpos($v, '[')); // clip the []
1405  if (!strpos($v, ':') && isset($this->typemap[$this->XMLSchemaVersion][$v])) {
1406  $v = $this->XMLSchemaVersion . ':' . $v;
1407  }
1408  $this->complexTypes[$this->currentComplexType]['arrayType'] = $v;
1409  }
1410  break;
1411  case 'complexContent': // (optional) content for a complexType
1412  break;
1413  case 'complexType':
1414  array_push($this->complexTypeStack, $this->currentComplexType);
1415  if (isset($attrs['name'])) {
1416  // TODO: what is the scope of named complexTypes that appear
1417  // nested within other c complexTypes?
1418  $this->xdebug('processing named complexType ' . $attrs['name']);
1419  //$this->currentElement = false;
1420  $this->currentComplexType = $attrs['name'];
1421  $this->complexTypes[$this->currentComplexType] = $attrs;
1422  $this->complexTypes[$this->currentComplexType]['typeClass'] = 'complexType';
1423  // This is for constructs like
1424  // <complexType name="ListOfString" base="soap:Array">
1425  // <sequence>
1426  // <element name="string" type="xsd:string"
1427  // minOccurs="0" maxOccurs="unbounded" />
1428  // </sequence>
1429  // </complexType>
1430  if (isset($attrs['base']) && preg_match('/:Array$/', $attrs['base'])) {
1431  $this->xdebug('complexType is unusual array');
1432  $this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
1433  } else {
1434  $this->complexTypes[$this->currentComplexType]['phpType'] = 'struct';
1435  }
1436  } else {
1437  $name = $this->CreateTypeName($this->currentElement);
1438  $this->xdebug('processing unnamed complexType for element ' . $this->currentElement . ' named ' . $name);
1439  $this->currentComplexType = $name;
1440  //$this->currentElement = false;
1441  $this->complexTypes[$this->currentComplexType] = $attrs;
1442  $this->complexTypes[$this->currentComplexType]['typeClass'] = 'complexType';
1443  // This is for constructs like
1444  // <complexType name="ListOfString" base="soap:Array">
1445  // <sequence>
1446  // <element name="string" type="xsd:string"
1447  // minOccurs="0" maxOccurs="unbounded" />
1448  // </sequence>
1449  // </complexType>
1450  if (isset($attrs['base']) && preg_match('/:Array$/', $attrs['base'])) {
1451  $this->xdebug('complexType is unusual array');
1452  $this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
1453  } else {
1454  $this->complexTypes[$this->currentComplexType]['phpType'] = 'struct';
1455  }
1456  }
1457  break;
1458  case 'element':
1459  array_push($this->elementStack, $this->currentElement);
1460  if (!isset($attrs['form'])) {
1461  $attrs['form'] = $this->schemaInfo['elementFormDefault'];
1462  }
1463  if (isset($attrs['type'])) {
1464  $this->xdebug("processing typed element " . $attrs['name'] . " of type " . $attrs['type']);
1465  if (! $this->getPrefix($attrs['type'])) {
1466  if ($this->defaultNamespace[$pos]) {
1467  $attrs['type'] = $this->defaultNamespace[$pos] . ':' . $attrs['type'];
1468  $this->xdebug('used default namespace to make type ' . $attrs['type']);
1469  }
1470  }
1471  // This is for constructs like
1472  // <complexType name="ListOfString" base="soap:Array">
1473  // <sequence>
1474  // <element name="string" type="xsd:string"
1475  // minOccurs="0" maxOccurs="unbounded" />
1476  // </sequence>
1477  // </complexType>
1478  if ($this->currentComplexType && $this->complexTypes[$this->currentComplexType]['phpType'] == 'array') {
1479  $this->xdebug('arrayType for unusual array is ' . $attrs['type']);
1480  $this->complexTypes[$this->currentComplexType]['arrayType'] = $attrs['type'];
1481  }
1482  $this->currentElement = $attrs['name'];
1483  $ename = $attrs['name'];
1484  } elseif (isset($attrs['ref'])) {
1485  $this->xdebug("processing element as ref to " . $attrs['ref']);
1486  $this->currentElement = "ref to " . $attrs['ref'];
1487  $ename = $this->getLocalPart($attrs['ref']);
1488  } else {
1489  $type = $this->CreateTypeName($this->currentComplexType . '_' . $attrs['name']);
1490  $this->xdebug("processing untyped element " . $attrs['name'] . ' type ' . $type);
1491  $this->currentElement = $attrs['name'];
1492  $attrs['type'] = $this->schemaTargetNamespace . ':' . $type;
1493  $ename = $attrs['name'];
1494  }
1495  if (isset($ename) && $this->currentComplexType) {
1496  $this->xdebug("add element $ename to complexType $this->currentComplexType");
1497  $this->complexTypes[$this->currentComplexType]['elements'][$ename] = $attrs;
1498  } elseif (!isset($attrs['ref'])) {
1499  $this->xdebug("add element $ename to elements array");
1500  $this->elements[ $attrs['name'] ] = $attrs;
1501  $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
1502  }
1503  break;
1504  case 'enumeration': // restriction value list member
1505  $this->xdebug('enumeration ' . $attrs['value']);
1506  if ($this->currentSimpleType) {
1507  $this->simpleTypes[$this->currentSimpleType]['enumeration'][] = $attrs['value'];
1508  } elseif ($this->currentComplexType) {
1509  $this->complexTypes[$this->currentComplexType]['enumeration'][] = $attrs['value'];
1510  }
1511  break;
1512  case 'extension': // simpleContent or complexContent type extension
1513  $this->xdebug('extension ' . $attrs['base']);
1514  if ($this->currentComplexType) {
1515  $this->complexTypes[$this->currentComplexType]['extensionBase'] = $attrs['base'];
1516  }
1517  break;
1518  case 'import':
1519  if (isset($attrs['schemaLocation'])) {
1520  //$this->xdebug('import namespace ' . $attrs['namespace'] . ' from ' . $attrs['schemaLocation']);
1521  $this->imports[$attrs['namespace']][] = array('location' => $attrs['schemaLocation'], 'loaded' => false);
1522  } else {
1523  //$this->xdebug('import namespace ' . $attrs['namespace']);
1524  $this->imports[$attrs['namespace']][] = array('location' => '', 'loaded' => true);
1525  if (! $this->getPrefixFromNamespace($attrs['namespace'])) {
1526  $this->namespaces['ns' . (count($this->namespaces)+1)] = $attrs['namespace'];
1527  }
1528  }
1529  break;
1530  case 'list': // simpleType value list
1531  break;
1532  case 'restriction': // simpleType, simpleContent or complexContent value restriction
1533  $this->xdebug('restriction ' . $attrs['base']);
1534  if ($this->currentSimpleType) {
1535  $this->simpleTypes[$this->currentSimpleType]['type'] = $attrs['base'];
1536  } elseif ($this->currentComplexType) {
1537  $this->complexTypes[$this->currentComplexType]['restrictionBase'] = $attrs['base'];
1538  if (strstr($attrs['base'], ':') == ':Array') {
1539  $this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
1540  }
1541  }
1542  break;
1543  case 'schema':
1544  $this->schemaInfo = $attrs;
1545  $this->schemaInfo['schemaVersion'] = $this->getNamespaceFromPrefix($prefix);
1546  if (isset($attrs['targetNamespace'])) {
1547  $this->schemaTargetNamespace = $attrs['targetNamespace'];
1548  }
1549  if (!isset($attrs['elementFormDefault'])) {
1550  $this->schemaInfo['elementFormDefault'] = 'unqualified';
1551  }
1552  if (!isset($attrs['attributeFormDefault'])) {
1553  $this->schemaInfo['attributeFormDefault'] = 'unqualified';
1554  }
1555  break;
1556  case 'simpleContent': // (optional) content for a complexType
1557  break;
1558  case 'simpleType':
1559  array_push($this->simpleTypeStack, $this->currentSimpleType);
1560  if (isset($attrs['name'])) {
1561  $this->xdebug("processing simpleType for name " . $attrs['name']);
1562  $this->currentSimpleType = $attrs['name'];
1563  $this->simpleTypes[ $attrs['name'] ] = $attrs;
1564  $this->simpleTypes[ $attrs['name'] ]['typeClass'] = 'simpleType';
1565  $this->simpleTypes[ $attrs['name'] ]['phpType'] = 'scalar';
1566  } else {
1567  $name = $this->CreateTypeName($this->currentComplexType . '_' . $this->currentElement);
1568  $this->xdebug('processing unnamed simpleType for element ' . $this->currentElement . ' named ' . $name);
1569  $this->currentSimpleType = $name;
1570  //$this->currentElement = false;
1571  $this->simpleTypes[$this->currentSimpleType] = $attrs;
1572  $this->simpleTypes[$this->currentSimpleType]['phpType'] = 'scalar';
1573  }
1574  break;
1575  case 'union': // simpleType type list
1576  break;
1577  default:
1578  //$this->xdebug("do not have anything to do for element $name");
1579  }
1580  }
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:305
getLocalPart($str)
returns the local part of a prefixed string returns the original string, if not prefixed ...
Definition: nusoap.php:821
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1756
getPrefixFromNamespace($ns)
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given...
Definition: nusoap.php:872
expandQname($qname)
expands (changes prefix to namespace) a qualified name
Definition: nusoap.php:795
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:909
getPrefix($str)
returns the prefix part of a prefixed string returns false, if not prefixed
Definition: nusoap.php:839
CreateTypeName($ename)
gets a type name for an unnamed type
Definition: nusoap.php:1274
getNamespaceFromPrefix($prefix)
pass it a prefix, it returns a namespace
Definition: nusoap.php:855
+ Here is the call graph for this function:

◆ serializeSchema()

nusoap_xmlschema::serializeSchema ( )

serialize the schema

public

Definition at line 1638 of file nusoap.php.

References Vendor\Package\$a, Vendor\Package\$e, and nusoap_base\getPrefixFromNamespace().

1639  {
1640  $schemaPrefix = $this->getPrefixFromNamespace($this->XMLSchemaVersion);
1641  $xml = '';
1642  // imports
1643  if (sizeof($this->imports) > 0) {
1644  foreach ($this->imports as $ns => $list) {
1645  foreach ($list as $ii) {
1646  if ($ii['location'] != '') {
1647  $xml .= " <$schemaPrefix:import location=\"" . $ii['location'] . '" namespace="' . $ns . "\" />\n";
1648  } else {
1649  $xml .= " <$schemaPrefix:import namespace=\"" . $ns . "\" />\n";
1650  }
1651  }
1652  }
1653  }
1654  // complex types
1655  foreach ($this->complexTypes as $typeName => $attrs) {
1656  $contentStr = '';
1657  // serialize child elements
1658  if (isset($attrs['elements']) && (count($attrs['elements']) > 0)) {
1659  foreach ($attrs['elements'] as $element => $eParts) {
1660  if (isset($eParts['ref'])) {
1661  $contentStr .= " <$schemaPrefix:element ref=\"$element\"/>\n";
1662  } else {
1663  $contentStr .= " <$schemaPrefix:element name=\"$element\" type=\"" . $this->contractQName($eParts['type']) . "\"";
1664  foreach ($eParts as $aName => $aValue) {
1665  // handle, e.g., abstract, default, form, minOccurs, maxOccurs, nillable
1666  if ($aName != 'name' && $aName != 'type') {
1667  $contentStr .= " $aName=\"$aValue\"";
1668  }
1669  }
1670  $contentStr .= "/>\n";
1671  }
1672  }
1673  // compositor wraps elements
1674  if (isset($attrs['compositor']) && ($attrs['compositor'] != '')) {
1675  $contentStr = " <$schemaPrefix:$attrs[compositor]>\n" . $contentStr . " </$schemaPrefix:$attrs[compositor]>\n";
1676  }
1677  }
1678  // attributes
1679  if (isset($attrs['attrs']) && (count($attrs['attrs']) >= 1)) {
1680  foreach ($attrs['attrs'] as $attr => $aParts) {
1681  $contentStr .= " <$schemaPrefix:attribute";
1682  foreach ($aParts as $a => $v) {
1683  if ($a == 'ref' || $a == 'type') {
1684  $contentStr .= " $a=\"" . $this->contractQName($v) . '"';
1685  } elseif ($a == 'http://schemas.xmlsoap.org/wsdl/:arrayType') {
1686  $this->usedNamespaces['wsdl'] = $this->namespaces['wsdl'];
1687  $contentStr .= ' wsdl:arrayType="' . $this->contractQName($v) . '"';
1688  } else {
1689  $contentStr .= " $a=\"$v\"";
1690  }
1691  }
1692  $contentStr .= "/>\n";
1693  }
1694  }
1695  // if restriction
1696  if (isset($attrs['restrictionBase']) && $attrs['restrictionBase'] != '') {
1697  $contentStr = " <$schemaPrefix:restriction base=\"" . $this->contractQName($attrs['restrictionBase']) . "\">\n" . $contentStr . " </$schemaPrefix:restriction>\n";
1698  // complex or simple content
1699  if ((isset($attrs['elements']) && count($attrs['elements']) > 0) || (isset($attrs['attrs']) && count($attrs['attrs']) > 0)) {
1700  $contentStr = " <$schemaPrefix:complexContent>\n" . $contentStr . " </$schemaPrefix:complexContent>\n";
1701  }
1702  }
1703  // finalize complex type
1704  if ($contentStr != '') {
1705  $contentStr = " <$schemaPrefix:complexType name=\"$typeName\">\n" . $contentStr . " </$schemaPrefix:complexType>\n";
1706  } else {
1707  $contentStr = " <$schemaPrefix:complexType name=\"$typeName\"/>\n";
1708  }
1709  $xml .= $contentStr;
1710  }
1711  // simple types
1712  if (isset($this->simpleTypes) && count($this->simpleTypes) > 0) {
1713  foreach ($this->simpleTypes as $typeName => $eParts) {
1714  $xml .= " <$schemaPrefix:simpleType name=\"$typeName\">\n <$schemaPrefix:restriction base=\"" . $this->contractQName($eParts['type']) . "\">\n";
1715  if (isset($eParts['enumeration'])) {
1716  foreach ($eParts['enumeration'] as $e) {
1717  $xml .= " <$schemaPrefix:enumeration value=\"$e\"/>\n";
1718  }
1719  }
1720  $xml .= " </$schemaPrefix:restriction>\n </$schemaPrefix:simpleType>";
1721  }
1722  }
1723  // elements
1724  if (isset($this->elements) && count($this->elements) > 0) {
1725  foreach ($this->elements as $element => $eParts) {
1726  $xml .= " <$schemaPrefix:element name=\"$element\" type=\"" . $this->contractQName($eParts['type']) . "\"/>\n";
1727  }
1728  }
1729  // attributes
1730  if (isset($this->attributes) && count($this->attributes) > 0) {
1731  foreach ($this->attributes as $attr => $aParts) {
1732  $xml .= " <$schemaPrefix:attribute name=\"$attr\" type=\"" . $this->contractQName($aParts['type']) . "\"\n/>";
1733  }
1734  }
1735  // finish 'er up
1736  $attr = '';
1737  foreach ($this->schemaInfo as $k => $v) {
1738  if ($k == 'elementFormDefault' || $k == 'attributeFormDefault') {
1739  $attr .= " $k=\"$v\"";
1740  }
1741  }
1742  $el = "<$schemaPrefix:schema$attr targetNamespace=\"$this->schemaTargetNamespace\"\n";
1743  foreach (array_diff($this->usedNamespaces, $this->enclosingNamespaces) as $nsp => $ns) {
1744  $el .= " xmlns:$nsp=\"$ns\"";
1745  }
1746  $xml = $el . ">\n" . $xml . "</$schemaPrefix:schema>\n";
1747  return $xml;
1748  }
getPrefixFromNamespace($ns)
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given...
Definition: nusoap.php:872
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
+ Here is the call graph for this function:

◆ serializeTypeDef()

nusoap_xmlschema::serializeTypeDef (   $type)

returns a sample serialization of a given type, or false if no type by the given name

Parameters
string$typename of type
Returns
mixed public
Deprecated:

Definition at line 1884 of file nusoap.php.

References $data.

1885  {
1886  //print "in sTD() for type $type<br>";
1887  if ($typeDef = $this->getTypeDef($type)) {
1888  $str .= '<' . $type;
1889  if (is_array($typeDef['attrs'])) {
1890  foreach ($typeDef['attrs'] as $attName => $data) {
1891  $str .= " $attName=\"{type = " . $data['type'] . "}\"";
1892  }
1893  }
1894  $str .= " xmlns=\"" . $this->schema['targetNamespace'] . "\"";
1895  if (count($typeDef['elements']) > 0) {
1896  $str .= ">";
1897  foreach ($typeDef['elements'] as $element => $eData) {
1898  $str .= $this->serializeTypeDef($element);
1899  }
1900  $str .= "</$type>";
1901  } elseif ($typeDef['typeClass'] == 'element') {
1902  $str .= "></$type>";
1903  } else {
1904  $str .= "/>";
1905  }
1906  return $str;
1907  }
1908  return false;
1909  }
getTypeDef($type)
returns an associative array of information about a given type returns false if no type exists by the...
Definition: nusoap.php:1807
serializeTypeDef($type)
returns a sample serialization of a given type, or false if no type by the given name ...
Definition: nusoap.php:1884

◆ typeToForm()

nusoap_xmlschema::typeToForm (   $name,
  $type 
)

returns HTML form elements that allow a user to enter values for creating an instance of the given type.

Parameters
string$namename for type instance
string$typename of type
Returns
string public
Deprecated:

Definition at line 1921 of file nusoap.php.

References nusoap_base\getLocalPart().

1922  {
1923  // get typedef
1924  if ($typeDef = $this->getTypeDef($type)) {
1925  // if struct
1926  if ($typeDef['phpType'] == 'struct') {
1927  $buffer .= '<table>';
1928  foreach ($typeDef['elements'] as $child => $childDef) {
1929  $buffer .= "
1930  <tr><td align='right'>$childDef[name] (type: " . $this->getLocalPart($childDef['type']) . "):</td>
1931  <td><input type='text' name='parameters[" . $name . "][$childDef[name]]'></td></tr>";
1932  }
1933  $buffer .= '</table>';
1934  // if array
1935  } elseif ($typeDef['phpType'] == 'array') {
1936  $buffer .= '<table>';
1937  for ($i=0;$i < 3; $i++) {
1938  $buffer .= "
1939  <tr><td align='right'>array item (type: $typeDef[arrayType]):</td>
1940  <td><input type='text' name='parameters[" . $name . "][]'></td></tr>";
1941  }
1942  $buffer .= '</table>';
1943  // if scalar
1944  } else {
1945  $buffer .= "<input type='text' name='parameters[$name]'>";
1946  }
1947  } else {
1948  $buffer .= "<input type='text' name='parameters[$name]'>";
1949  }
1950  return $buffer;
1951  }
getLocalPart($str)
returns the local part of a prefixed string returns the original string, if not prefixed ...
Definition: nusoap.php:821
getTypeDef($type)
returns an associative array of information about a given type returns false if no type exists by the...
Definition: nusoap.php:1807
+ Here is the call graph for this function:

◆ xdebug()

nusoap_xmlschema::xdebug (   $string)

adds debug data to the clas level debug string

Parameters
string$stringdebug data private

Definition at line 1756 of file nusoap.php.

References nusoap_base\debug().

1757  {
1758  $this->debug('<' . $this->schemaTargetNamespace . '> ' . $string);
1759  }
debug($string)
adds debug data to the instance debug string with formatting
Definition: nusoap.php:292
+ Here is the call graph for this function:

Field Documentation

◆ $attributes

nusoap_xmlschema::$attributes = array()

Definition at line 1138 of file nusoap.php.

◆ $complexTypes

nusoap_xmlschema::$complexTypes = array()

Definition at line 1139 of file nusoap.php.

◆ $complexTypeStack

nusoap_xmlschema::$complexTypeStack = array()

Definition at line 1140 of file nusoap.php.

◆ $currentComplexType

nusoap_xmlschema::$currentComplexType = null

Definition at line 1141 of file nusoap.php.

◆ $currentElement

nusoap_xmlschema::$currentElement = null

Definition at line 1144 of file nusoap.php.

◆ $currentSimpleType

nusoap_xmlschema::$currentSimpleType = null

Definition at line 1147 of file nusoap.php.

◆ $defaultNamespace

nusoap_xmlschema::$defaultNamespace = array()

Definition at line 1156 of file nusoap.php.

◆ $depth

nusoap_xmlschema::$depth = 0

Definition at line 1153 of file nusoap.php.

◆ $depth_array

nusoap_xmlschema::$depth_array = array()

Definition at line 1154 of file nusoap.php.

◆ $elements

nusoap_xmlschema::$elements = array()

Definition at line 1142 of file nusoap.php.

◆ $elementStack

nusoap_xmlschema::$elementStack = array()

Definition at line 1143 of file nusoap.php.

◆ $enclosingNamespaces

nusoap_xmlschema::$enclosingNamespaces

Definition at line 1133 of file nusoap.php.

◆ $imports

nusoap_xmlschema::$imports = array()

Definition at line 1149 of file nusoap.php.

◆ $message

nusoap_xmlschema::$message = array()

Definition at line 1155 of file nusoap.php.

◆ $parser

nusoap_xmlschema::$parser

Definition at line 1151 of file nusoap.php.

◆ $position

nusoap_xmlschema::$position = 0

Definition at line 1152 of file nusoap.php.

◆ $schema

nusoap_xmlschema::$schema = ''

Definition at line 1130 of file nusoap.php.

◆ $schemaInfo

nusoap_xmlschema::$schemaInfo = array()

Definition at line 1135 of file nusoap.php.

◆ $schemaTargetNamespace

nusoap_xmlschema::$schemaTargetNamespace = ''

Definition at line 1136 of file nusoap.php.

◆ $simpleTypes

nusoap_xmlschema::$simpleTypes = array()

Definition at line 1145 of file nusoap.php.

◆ $simpleTypeStack

nusoap_xmlschema::$simpleTypeStack = array()

Definition at line 1146 of file nusoap.php.

◆ $xml

nusoap_xmlschema::$xml = ''

Definition at line 1131 of file nusoap.php.


The documentation for this class was generated from the following file: