ILIAS
Release_3_10_x_branch Revision 61812
|
parses an XML Schema, allows access to it's data, other utility methods no validation... More...
Public Member Functions | |
XMLSchema ($schema='', $xml='', $namespaces=array()) | |
constructor | |
parseFile ($xml, $type) | |
parse an XML file | |
parseString ($xml, $type) | |
parse an XML string | |
schemaStartElement ($parser, $name, $attrs) | |
start-element handler | |
schemaEndElement ($parser, $name) | |
end-element handler | |
schemaCharacterData ($parser, $data) | |
element content handler | |
serializeSchema () | |
serialize the schema | |
xdebug ($string) | |
adds debug data to the clas level debug string | |
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. | |
getTypeDef ($type) | |
returns an array of information about a given type returns false if no type exists by the given name | |
serializeTypeDef ($type) | |
returns a sample serialization of a given type, or false if no type by the given name | |
typeToForm ($name, $type) | |
returns HTML form elements that allow a user to enter values for creating an instance of the given type. | |
addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='') | |
adds a complex type to the schema | |
addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar') | |
adds a simple type to the schema | |
XMLSchema ($schema='', $xml='', $namespaces=array()) | |
constructor | |
parseFile ($xml, $type) | |
parse an XML file | |
parseString ($xml, $type) | |
parse an XML string | |
schemaStartElement ($parser, $name, $attrs) | |
start-element handler | |
schemaEndElement ($parser, $name) | |
end-element handler | |
schemaCharacterData ($parser, $data) | |
element content handler | |
serializeSchema () | |
serialize the schema | |
xdebug ($string) | |
adds debug data to the clas level debug string | |
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. | |
getTypeDef ($type) | |
returns an associative array of information about a given type returns false if no type exists by the given name | |
serializeTypeDef ($type) | |
returns a sample serialization of a given type, or false if no type by the given name | |
typeToForm ($name, $type) | |
returns HTML form elements that allow a user to enter values for creating an instance of the given type. | |
addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='') | |
adds a complex type to the schema | |
addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) | |
adds a simple type to the schema | |
addElement ($attrs) | |
adds an element to the schema | |
XMLSchema ($schema='', $xml='', $namespaces=array()) | |
constructor | |
parseFile ($xml, $type) | |
parse an XML file | |
parseString ($xml, $type) | |
parse an XML string | |
schemaStartElement ($parser, $name, $attrs) | |
start-element handler | |
schemaEndElement ($parser, $name) | |
end-element handler | |
schemaCharacterData ($parser, $data) | |
element content handler | |
serializeSchema () | |
serialize the schema | |
xdebug ($string) | |
adds debug data to the clas level debug string | |
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. | |
getTypeDef ($type) | |
returns an associative array of information about a given type returns false if no type exists by the given name | |
serializeTypeDef ($type) | |
returns a sample serialization of a given type, or false if no type by the given name | |
typeToForm ($name, $type) | |
returns HTML form elements that allow a user to enter values for creating an instance of the given type. | |
addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='') | |
adds a complex type to the schema | |
addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) | |
adds a simple type to the schema | |
addElement ($attrs) | |
adds an element to the schema | |
Public Member Functions inherited from nusoap_base | |
debug ($string) | |
adds debug data to the class level debug string | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded') | |
serialize message | |
formatDump ($str) | |
contractQname ($qname) | |
contracts a qualified name | |
expandQname ($qname) | |
expands a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace returns false if no namespace registered with the given prefix | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
varDump ($data) | |
nusoap_base () | |
constructor | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances | |
getDebugLevel () | |
gets the debug level for this instance | |
setDebugLevel ($level) | |
sets the debug level for this instance | |
debug ($string) | |
adds debug data to the instance debug string with formatting | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting | |
clearDebug () | |
clears the current debug data for this instance | |
& | getDebug () |
gets the current debug data for this instance | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds | |
varDump ($data) | |
Returns a string with the output of var_dump. | |
nusoap_base () | |
constructor | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances | |
getDebugLevel () | |
gets the debug level for this instance | |
setDebugLevel ($level) | |
sets the debug level for this instance | |
debug ($string) | |
adds debug data to the instance debug string with formatting | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting | |
clearDebug () | |
clears the current debug data for this instance | |
& | getDebug () |
gets the current debug data for this instance | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds | |
varDump ($data) | |
Returns a string with the output of var_dump. |
Data Fields | |
$schema = '' | |
$xml = '' | |
$enclosingNamespaces | |
$schemaInfo = array() | |
$schemaTargetNamespace = '' | |
$attributes = array() | |
$complexTypes = array() | |
$currentComplexType = false | |
$elements = array() | |
$currentElement = false | |
$simpleTypes = array() | |
$currentSimpleType = false | |
$imports = array() | |
$parser | |
$position = 0 | |
$depth = 0 | |
$depth_array = array() | |
$message = array() | |
$defaultNamespace = array() | |
$complexTypeStack = array() | |
$elementStack = array() | |
$simpleTypeStack = array() | |
Data Fields inherited from nusoap_base | |
$title = 'NuSOAP' | |
$version = '0.6.7' | |
$revision = '$Revision: 11808 $' | |
$error_str = false | |
$debug_str = '' | |
$charencoding = true | |
$XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema' | |
$soap_defencoding = 'UTF-8' | |
$namespaces | |
$usedNamespaces = array() | |
$typemap | |
$xmlEntities | |
$debugLevel |
parses an XML Schema, allows access to it's data, other utility methods no validation...
yet. very experimental and limited. As is discussed on XML-DEV, I'm one of the people that just doesn't have time to read the spec(s) thoroughly, and just have a couple of trusty tutorials I refer to :)
public
yet. very experimental and limited. As is discussed on XML-DEV, I'm one of the people that just doesn't have time to read the spec(s) thoroughly, and just have a couple of trusty tutorials I refer to :)
public
yet. very experimental and limited. As is discussed on XML-DEV, I'm one of the people that just doesn't have time to read the spec(s) thoroughly, and just have a couple of trusty tutorials I refer to :)
public
Definition at line 734 of file nusoap.php.
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') );
name | |
typeClass | (complexType|simpleType|attribute) |
phpType,: | currently supported are array and struct (php assoc array) |
compositor | (all|sequence|choice) |
restrictionBase | namespace: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[]" ) ) |
arrayType,: | namespace:name (http://www.w3.org/2001/XMLSchema:string) public |
Definition at line 843 of file class.xmlschema.php.
References $elements, nusoap_base\appendDebug(), nusoap_base\varDump(), and xdebug().
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') );
name | |
typeClass | (complexType|simpleType|attribute) |
phpType,: | currently supported are array and struct (php assoc array) |
compositor | (all|sequence|choice) |
restrictionBase | namespace: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[]" ) ) |
arrayType,: | namespace:name (http://www.w3.org/2001/XMLSchema:string) |
Definition at line 1444 of file nusoap.php.
References $elements, nusoap_base\varDump(), and xdebug().
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') );
name | |
typeClass | (complexType|simpleType|attribute) |
phpType,: | currently supported are array and struct (php assoc array) |
compositor | (all|sequence|choice) |
restrictionBase | namespace: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[]" ) ) |
arrayType,: | namespace:name (http://www.w3.org/2001/XMLSchema:string) public |
Definition at line 1832 of file nusoap.php.
References $elements, nusoap_base\appendDebug(), nusoap_base\varDump(), and xdebug().
XMLSchema::addElement | ( | $attrs | ) |
adds an element to the schema
array | $attrs | attributes that must include name and type |
Definition at line 891 of file class.xmlschema.php.
References nusoap_base\appendDebug(), nusoap_base\getPrefix(), nusoap_base\varDump(), and xdebug().
XMLSchema::addElement | ( | $attrs | ) |
adds an element to the schema
array | $attrs | attributes that must include name and type |
Definition at line 1880 of file nusoap.php.
References nusoap_base\appendDebug(), nusoap_base\getPrefix(), nusoap_base\varDump(), and xdebug().
XMLSchema::addSimpleType | ( | $name, | |
$restrictionBase = '' , |
|||
$typeClass = 'simpleType' , |
|||
$phpType = 'scalar' , |
|||
$enumeration = array() |
|||
) |
adds a simple type to the schema
string | $name | |
string | $restrictionBase | namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array) |
string | $typeClass | (should always be simpleType) |
string | $phpType | (should always be scalar) |
array | $enumeration | array of values public |
Definition at line 871 of file class.xmlschema.php.
References nusoap_base\appendDebug(), nusoap_base\varDump(), and xdebug().
XMLSchema::addSimpleType | ( | $name, | |
$restrictionBase = '' , |
|||
$typeClass = 'simpleType' , |
|||
$phpType = 'scalar' |
|||
) |
adds a simple type to the schema
name | |
restrictionBase | namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array) |
typeClass | (simpleType) |
phpType,: | (scalar) |
Definition at line 1469 of file nusoap.php.
References nusoap_base\varDump(), and xdebug().
XMLSchema::addSimpleType | ( | $name, | |
$restrictionBase = '' , |
|||
$typeClass = 'simpleType' , |
|||
$phpType = 'scalar' , |
|||
$enumeration = array() |
|||
) |
adds a simple type to the schema
string | $name | |
string | $restrictionBase | namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array) |
string | $typeClass | (should always be simpleType) |
string | $phpType | (should always be scalar) |
array | $enumeration | array of values public |
Definition at line 1860 of file nusoap.php.
References nusoap_base\appendDebug(), nusoap_base\varDump(), and xdebug().
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'
string | $type,name | of defined type |
string | $ns,namespace | of type |
Definition at line 633 of file class.xmlschema.php.
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'
string | $type,name | of defined type |
string | $ns,namespace | of type |
Definition at line 1254 of file nusoap.php.
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'
string | $type,name | of defined type |
string | $ns,namespace | of type |
Definition at line 1622 of file nusoap.php.
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.
string |
Definition at line 666 of file class.xmlschema.php.
References getTypeDef(), nusoap_base\varDump(), and xdebug().
XMLSchema::getTypeDef | ( | $type | ) |
returns an array of information about a given type returns false if no type exists by the given name
typeDef = array( 'elements' => array(), // refs to elements array 'restrictionBase' => '', 'phpType' => '', 'order' => '(sequence|all)', 'attrs' => array() // refs to attributes array )
string |
Definition at line 1281 of file nusoap.php.
References xdebug().
Referenced by getTypeDef(), serializeTypeDef(), and typeToForm().
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.
string |
Definition at line 1655 of file nusoap.php.
References getTypeDef(), nusoap_base\varDump(), and xdebug().
XMLSchema::parseFile | ( | $xml, | |
$type | |||
) |
parse an XML file
string | $xml,path/URL | to XML file |
string | $type,(schema | | xml) |
Definition at line 89 of file class.xmlschema.php.
References $xml, nusoap_base\debug(), parseString(), and nusoap_base\setError().
XMLSchema::parseFile | ( | $xml, | |
$type | |||
) |
parse an XML file
string | $xml,path/URL | to XML file |
string | $type,(schema | | xml) |
Definition at line 803 of file nusoap.php.
References $xml, nusoap_base\debug(), parseString(), and nusoap_base\setError().
Referenced by XMLSchema().
XMLSchema::parseFile | ( | $xml, | |
$type | |||
) |
parse an XML file
string | $xml,path/URL | to XML file |
string | $type,(schema | | xml) |
Definition at line 1078 of file nusoap.php.
References $xml, nusoap_base\debug(), parseString(), and nusoap_base\setError().
XMLSchema::parseString | ( | $xml, | |
$type | |||
) |
parse an XML string
@param string $xml path or URL
string | $type,(schema|xml) | private |
Definition at line 115 of file class.xmlschema.php.
References $xml, nusoap_base\debug(), and nusoap_base\setError().
XMLSchema::parseString | ( | $xml, | |
$type | |||
) |
parse an XML string
@param string $xml path or URL
string | $type,(schema|xml) | private |
Definition at line 829 of file nusoap.php.
References $xml, nusoap_base\debug(), and nusoap_base\setError().
Referenced by parseFile().
XMLSchema::parseString | ( | $xml, | |
$type | |||
) |
parse an XML string
@param string $xml path or URL
string | $type,(schema|xml) | private |
Definition at line 1104 of file nusoap.php.
References $xml, nusoap_base\debug(), and nusoap_base\setError().
XMLSchema::schemaCharacterData | ( | $parser, | |
$data | |||
) |
element content handler
string | $parser | XML parser object |
string | $data | element content private |
Definition at line 495 of file class.xmlschema.php.
References $data.
XMLSchema::schemaCharacterData | ( | $parser, | |
$data | |||
) |
element content handler
string | $parser | XML parser object |
string | $data | element content private |
Definition at line 1136 of file nusoap.php.
References $data.
XMLSchema::schemaCharacterData | ( | $parser, | |
$data | |||
) |
element content handler
string | $parser | XML parser object |
string | $data | element content private |
Definition at line 1484 of file nusoap.php.
References $data.
XMLSchema::schemaEndElement | ( | $parser, | |
$name | |||
) |
end-element handler
string | $parser | XML parser object |
string | $name | element name private |
Definition at line 458 of file class.xmlschema.php.
References $depth, nusoap_base\getLocalPart(), nusoap_base\getPrefix(), and xdebug().
XMLSchema::schemaEndElement | ( | $parser, | |
$name | |||
) |
end-element handler
string | $parser | XML parser object |
string | $name | element name private |
Definition at line 1109 of file nusoap.php.
References $depth.
XMLSchema::schemaEndElement | ( | $parser, | |
$name | |||
) |
end-element handler
string | $parser | XML parser object |
string | $name | element name private |
Definition at line 1447 of file nusoap.php.
References $depth, nusoap_base\getLocalPart(), nusoap_base\getPrefix(), and xdebug().
XMLSchema::schemaStartElement | ( | $parser, | |
$name, | |||
$attrs | |||
) |
start-element handler
string | $parser | XML parser object |
string | $name | element name |
string | $attrs | associative array of attributes private |
Definition at line 163 of file class.xmlschema.php.
References $currentComplexType, $currentSimpleType, $depth, nusoap_base\appendDebug(), nusoap_base\expandQname(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), nusoap_base\varDump(), and xdebug().
XMLSchema::schemaStartElement | ( | $parser, | |
$name, | |||
$attrs | |||
) |
start-element handler
string | $parser | XML parser object |
string | $name | element name |
string | $attrs | associative array of attributes private |
Definition at line 877 of file nusoap.php.
References $currentComplexType, $currentElement, $currentSimpleType, $depth, nusoap_base\expandQname(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), nusoap_base\varDump(), and xdebug().
XMLSchema::schemaStartElement | ( | $parser, | |
$name, | |||
$attrs | |||
) |
start-element handler
string | $parser | XML parser object |
string | $name | element name |
string | $attrs | associative array of attributes private |
Definition at line 1152 of file nusoap.php.
References $currentComplexType, $currentSimpleType, $depth, nusoap_base\appendDebug(), nusoap_base\expandQname(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), nusoap_base\varDump(), and xdebug().
XMLSchema::serializeSchema | ( | ) |
serialize the schema
public
Definition at line 505 of file class.xmlschema.php.
References $xml, and nusoap_base\getPrefixFromNamespace().
XMLSchema::serializeSchema | ( | ) |
serialize the schema
public
Definition at line 1146 of file nusoap.php.
References $xml, and nusoap_base\getPrefixFromNamespace().
XMLSchema::serializeSchema | ( | ) |
serialize the schema
public
Definition at line 1494 of file nusoap.php.
References $xml, and nusoap_base\getPrefixFromNamespace().
XMLSchema::serializeTypeDef | ( | $type | ) |
returns a sample serialization of a given type, or false if no type by the given name
string | $type,name | of type |
Definition at line 735 of file class.xmlschema.php.
References $data, getTypeDef(), and serializeTypeDef().
XMLSchema::serializeTypeDef | ( | $type | ) |
returns a sample serialization of a given type, or false if no type by the given name
string | $type,name | of type |
Definition at line 1338 of file nusoap.php.
References $data, and getTypeDef().
Referenced by serializeTypeDef().
XMLSchema::serializeTypeDef | ( | $type | ) |
returns a sample serialization of a given type, or false if no type by the given name
string | $type,name | of type |
Definition at line 1724 of file nusoap.php.
References $data, getTypeDef(), and serializeTypeDef().
XMLSchema::typeToForm | ( | $name, | |
$type | |||
) |
returns HTML form elements that allow a user to enter values for creating an instance of the given type.
string | $name,name | for type instance |
string | $type,name | of type |
Definition at line 771 of file class.xmlschema.php.
References getTypeDef().
XMLSchema::typeToForm | ( | $name, | |
$type | |||
) |
returns HTML form elements that allow a user to enter values for creating an instance of the given type.
string | $name,name | for type instance |
string | $type,name | of type |
Definition at line 1373 of file nusoap.php.
References getTypeDef().
XMLSchema::typeToForm | ( | $name, | |
$type | |||
) |
returns HTML form elements that allow a user to enter values for creating an instance of the given type.
string | $name,name | for type instance |
string | $type,name | of type |
Definition at line 1760 of file nusoap.php.
References getTypeDef().
XMLSchema::xdebug | ( | $string | ) |
adds debug data to the clas level debug string
string | $string | debug data private |
Definition at line 617 of file class.xmlschema.php.
References nusoap_base\debug().
XMLSchema::xdebug | ( | $string | ) |
adds debug data to the clas level debug string
string | $string | debug data private |
Definition at line 1239 of file nusoap.php.
References nusoap_base\debug().
Referenced by addComplexType(), addElement(), addSimpleType(), getTypeDef(), schemaEndElement(), and schemaStartElement().
XMLSchema::xdebug | ( | $string | ) |
adds debug data to the clas level debug string
string | $string | debug data private |
Definition at line 1606 of file nusoap.php.
References nusoap_base\debug().
XMLSchema::XMLSchema | ( | $schema = '' , |
|
$xml = '' , |
|||
$namespaces = array() |
|||
) |
constructor
string | $schema | schema document URI |
string | $xml | xml document URI |
string | $namespaces | namespaces defined in enclosing XML public |
Definition at line 56 of file class.xmlschema.php.
References nusoap_base\$namespaces, $schema, $xml, nusoap_base\debug(), nusoap_base\nusoap_base(), and parseFile().
XMLSchema::XMLSchema | ( | $schema = '' , |
|
$xml = '' , |
|||
$namespaces = array() |
|||
) |
constructor
string | $schema | schema document URI |
string | $xml | xml document URI |
string | $namespaces | namespaces defined in enclosing XML public |
Definition at line 770 of file nusoap.php.
References nusoap_base\$namespaces, $schema, $xml, nusoap_base\debug(), and parseFile().
XMLSchema::XMLSchema | ( | $schema = '' , |
|
$xml = '' , |
|||
$namespaces = array() |
|||
) |
constructor
string | $schema | schema document URI |
string | $xml | xml document URI |
string | $namespaces | namespaces defined in enclosing XML public |
Definition at line 1045 of file nusoap.php.
References nusoap_base\$namespaces, $schema, $xml, nusoap_base\debug(), nusoap_base\nusoap_base(), and parseFile().
XMLSchema::$attributes = array() |
Definition at line 745 of file nusoap.php.
XMLSchema::$complexTypes = array() |
Definition at line 746 of file nusoap.php.
XMLSchema::$complexTypeStack = array() |
Definition at line 30 of file class.xmlschema.php.
XMLSchema::$currentComplexType = false |
Definition at line 747 of file nusoap.php.
Referenced by schemaStartElement().
XMLSchema::$currentElement = false |
Definition at line 749 of file nusoap.php.
Referenced by schemaStartElement().
XMLSchema::$currentSimpleType = false |
Definition at line 751 of file nusoap.php.
Referenced by schemaStartElement().
XMLSchema::$defaultNamespace = array() |
Definition at line 760 of file nusoap.php.
XMLSchema::$depth = 0 |
Definition at line 757 of file nusoap.php.
Referenced by schemaEndElement(), and schemaStartElement().
XMLSchema::$depth_array = array() |
Definition at line 758 of file nusoap.php.
XMLSchema::$elements = array() |
Definition at line 748 of file nusoap.php.
Referenced by addComplexType().
XMLSchema::$elementStack = array() |
Definition at line 33 of file class.xmlschema.php.
XMLSchema::$enclosingNamespaces |
Definition at line 740 of file nusoap.php.
XMLSchema::$imports = array() |
Definition at line 753 of file nusoap.php.
XMLSchema::$message = array() |
Definition at line 759 of file nusoap.php.
XMLSchema::$parser |
Definition at line 755 of file nusoap.php.
XMLSchema::$position = 0 |
Definition at line 756 of file nusoap.php.
XMLSchema::$schema = '' |
Definition at line 737 of file nusoap.php.
Referenced by XMLSchema().
XMLSchema::$schemaInfo = array() |
Definition at line 742 of file nusoap.php.
XMLSchema::$schemaTargetNamespace = '' |
Definition at line 743 of file nusoap.php.
XMLSchema::$simpleTypes = array() |
Definition at line 750 of file nusoap.php.
XMLSchema::$simpleTypeStack = array() |
Definition at line 36 of file class.xmlschema.php.
XMLSchema::$xml = '' |
Definition at line 738 of file nusoap.php.
Referenced by parseFile(), parseString(), serializeSchema(), and XMLSchema().