ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 1125 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 1164 of file nusoap.php.

References nusoap_base\$namespaces, ILIAS\GlobalScreen\Provider\__construct(), and nusoap_base\debug().

1165  {
1167  $this->debug('nusoap_xmlschema class instantiated, inside constructor');
1168  // files
1169  $this->schema = $schema;
1170  $this->xml = $xml;
1171 
1172  // namespaces
1173  $this->enclosingNamespaces = $namespaces;
1174  $this->namespaces = array_merge($this->namespaces, $namespaces);
1175 
1176  // parse schema file
1177  if ($schema != '') {
1178  $this->debug('initial schema file: ' . $schema);
1179  $this->parseFile($schema, 'schema');
1180  }
1181 
1182  // parse xml file
1183  if ($xml != '') {
1184  $this->debug('initial xml file: ' . $xml);
1185  $this->parseFile($xml, 'xml');
1186  }
1187  }
parseFile($xml, $type)
parse an XML file
Definition: nusoap.php:1197
debug($string)
adds debug data to the instance debug string with formatting
Definition: nusoap.php:290
__construct(Container $dic, ilPlugin $plugin)
+ 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 1992 of file nusoap.php.

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

1993  {
1994  $this->complexTypes[$name] = array(
1995  'name' => $name,
1996  'typeClass' => $typeClass,
1997  'phpType' => $phpType,
1998  'compositor'=> $compositor,
1999  'restrictionBase' => $restrictionBase,
2000  'elements' => $elements,
2001  'attrs' => $attrs,
2002  'arrayType' => $arrayType
2003  );
2004 
2005  $this->xdebug("addComplexType $name:");
2006  $this->appendDebug($this->varDump($this->complexTypes[$name]));
2007  }
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:303
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1754
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:907
+ 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 2042 of file nusoap.php.

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

2043  {
2044  if (! $this->getPrefix($attrs['type'])) {
2045  $attrs['type'] = $this->schemaTargetNamespace . ':' . $attrs['type'];
2046  }
2047  $this->elements[ $attrs['name'] ] = $attrs;
2048  $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
2049 
2050  $this->xdebug("addElement " . $attrs['name']);
2051  $this->appendDebug($this->varDump($this->elements[ $attrs['name'] ]));
2052  }
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:303
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1754
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:907
getPrefix($str)
returns the prefix part of a prefixed string returns false, if not prefixed
Definition: nusoap.php:837
+ 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 2021 of file nusoap.php.

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

2022  {
2023  $this->simpleTypes[$name] = array(
2024  'name' => $name,
2025  'typeClass' => $typeClass,
2026  'phpType' => $phpType,
2027  'type' => $restrictionBase,
2028  'enumeration' => $enumeration
2029  );
2030 
2031  $this->xdebug("addSimpleType $name:");
2032  $this->appendDebug($this->varDump($this->simpleTypes[$name]));
2033  }
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:303
xdebug($string)
adds debug data to the clas level debug string
Definition: nusoap.php:1754
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:907
+ 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 1272 of file nusoap.php.

References $scope.

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

◆ 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 1771 of file nusoap.php.

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

◆ 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 1805 of file nusoap.php.

References nusoap_base\varDump().

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

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

1198  {
1199  // parse xml file
1200  if ($xml != "") {
1201  $xmlStr = @join("", @file($xml));
1202  if ($xmlStr == "") {
1203  $msg = 'Error reading XML from ' . $xml;
1204  $this->setError($msg);
1205  $this->debug($msg);
1206  return false;
1207  } else {
1208  $this->debug("parsing $xml");
1209  $this->parseString($xmlStr, $type);
1210  $this->debug("done parsing $xml");
1211  return true;
1212  }
1213  }
1214  return false;
1215  }
setError($str)
sets error string
Definition: nusoap.php:393
parseString($xml, $type)
parse an XML string
Definition: nusoap.php:1224
debug($string)
adds debug data to the instance debug string with formatting
Definition: nusoap.php:290
+ 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 1224 of file nusoap.php.

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

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

References $data.

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

◆ schemaEndElement()

nusoap_xmlschema::schemaEndElement (   $parser,
  $name 
)

end-element handler

Parameters
string$parserXML parser object
string$nameelement name private

Definition at line 1587 of file nusoap.php.

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

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

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

◆ serializeSchema()

nusoap_xmlschema::serializeSchema ( )

serialize the schema

public

Definition at line 1636 of file nusoap.php.

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

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

References $data.

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

◆ 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 1919 of file nusoap.php.

References nusoap_base\getLocalPart().

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

References nusoap_base\debug().

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

Field Documentation

◆ $attributes

nusoap_xmlschema::$attributes = array()

Definition at line 1136 of file nusoap.php.

◆ $complexTypes

nusoap_xmlschema::$complexTypes = array()

Definition at line 1137 of file nusoap.php.

◆ $complexTypeStack

nusoap_xmlschema::$complexTypeStack = array()

Definition at line 1138 of file nusoap.php.

◆ $currentComplexType

nusoap_xmlschema::$currentComplexType = null

Definition at line 1139 of file nusoap.php.

◆ $currentElement

nusoap_xmlschema::$currentElement = null

Definition at line 1142 of file nusoap.php.

◆ $currentSimpleType

nusoap_xmlschema::$currentSimpleType = null

Definition at line 1145 of file nusoap.php.

◆ $defaultNamespace

nusoap_xmlschema::$defaultNamespace = array()

Definition at line 1154 of file nusoap.php.

◆ $depth

nusoap_xmlschema::$depth = 0

Definition at line 1151 of file nusoap.php.

◆ $depth_array

nusoap_xmlschema::$depth_array = array()

Definition at line 1152 of file nusoap.php.

◆ $elements

nusoap_xmlschema::$elements = array()

Definition at line 1140 of file nusoap.php.

◆ $elementStack

nusoap_xmlschema::$elementStack = array()

Definition at line 1141 of file nusoap.php.

◆ $enclosingNamespaces

nusoap_xmlschema::$enclosingNamespaces

Definition at line 1131 of file nusoap.php.

◆ $imports

nusoap_xmlschema::$imports = array()

Definition at line 1147 of file nusoap.php.

◆ $message

nusoap_xmlschema::$message = array()

Definition at line 1153 of file nusoap.php.

◆ $parser

nusoap_xmlschema::$parser

Definition at line 1149 of file nusoap.php.

◆ $position

nusoap_xmlschema::$position = 0

Definition at line 1150 of file nusoap.php.

◆ $schema

nusoap_xmlschema::$schema = ''

Definition at line 1128 of file nusoap.php.

◆ $schemaInfo

nusoap_xmlschema::$schemaInfo = array()

Definition at line 1133 of file nusoap.php.

◆ $schemaTargetNamespace

nusoap_xmlschema::$schemaTargetNamespace = ''

Definition at line 1134 of file nusoap.php.

◆ $simpleTypes

nusoap_xmlschema::$simpleTypes = array()

Definition at line 1143 of file nusoap.php.

◆ $simpleTypeStack

nusoap_xmlschema::$simpleTypeStack = array()

Definition at line 1144 of file nusoap.php.

◆ $xml

nusoap_xmlschema::$xml = ''

Definition at line 1129 of file nusoap.php.


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