|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct ($schema='', $xml='', $namespaces=[]) | |
| parseFile ($xml, $type) | |
| parseString ($xml, $type) | |
| CreateTypeName ($ename) | |
| schemaStartElement ($parser, $name, $attrs) | |
| schemaEndElement ($parser, $name) | |
| schemaCharacterData ($parser, $data) | |
| serializeSchema () | |
| xdebug ($string) | |
| getPHPType ($type, $ns) | |
| getTypeDef ($type) | |
| serializeTypeDef ($type) | |
| typeToForm ($name, $type) | |
| addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=[], $attrs=[], $arrayType='') | |
| addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=[]) | |
| addElement ($attrs) | |
Public Member Functions inherited from nusoap_base | |
| __construct () | |
| getGlobalDebugLevel () | |
| setGlobalDebugLevel ($level) | |
| getDebugLevel () | |
| setDebugLevel ($level) | |
| debug ($string) | |
| appendDebug ($string) | |
| clearDebug () | |
| & | getDebug () |
| & | getDebugAsXMLComment () |
| expandEntities ($val) | |
| getError () | |
| setError ($str) | |
| isArraySimpleOrStruct ($val) | |
| serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false) | |
| serializeEnvelope ($body, $headers=false, $namespaces=[], $style='rpc', $use='encoded', $encodingStyle='https://schemas.xmlsoap.org/soap/encoding/') | |
| formatDump ($str) | |
| contractQname ($qname) | |
| expandQname ($qname) | |
| getLocalPart ($str) | |
| getPrefix ($str) | |
| getNamespaceFromPrefix ($prefix) | |
| getPrefixFromNamespace ($ns) | |
| getmicrotime () | |
| varDump ($data) | |
| __toString () | |
Data Fields | |
| $schema = '' | |
| $xml = '' | |
| $enclosingNamespaces | |
| $schemaInfo = [] | |
| $schemaTargetNamespace = '' | |
| $attributes = [] | |
| $complexTypes = [] | |
| $complexTypeStack = [] | |
| $currentComplexType = null | |
| $elements = [] | |
| $elementStack = [] | |
| $currentElement = null | |
| $simpleTypes = [] | |
| $simpleTypeStack = [] | |
| $currentSimpleType = null | |
| $imports = [] | |
| $parser | |
| $position = 0 | |
| $depth = 0 | |
| $depth_array = [] | |
| $message = [] | |
| $defaultNamespace = [] | |
Data Fields inherited from nusoap_base | |
| $title = 'NuSOAP' | |
| $version = '0.9.5' | |
| $revision = '$Revision: 1.123 $' | |
| $error_str = '' | |
| $debug_str = '' | |
| $charencoding = true | |
| $debugLevel | |
| $XMLSchemaVersion = 'https://www.w3.org/2001/XMLSchema' | |
| $soap_defencoding = 'UTF-8' | |
| $namespaces | |
| $usedNamespaces = [] | |
| $typemap | |
| $xmlEntities | |
parses an XML Schema, allows access to it's data, other utility methods. imperfect, no validation... yet, but quite functional.
@access public
Definition at line 1131 of file nusoap.php.
| __construct | ( | $schema = '', | |
| $xml = '', | |||
| $namespaces = [] ) |
constructor
| string | $schema | schema document URI |
| string | $xml | xml document URI |
| array | $namespaces | namespaces defined in enclosing XML @access public |
Definition at line 1171 of file nusoap.php.
| addComplexType | ( | $name, | |
| $typeClass = 'complexType', | |||
| $phpType = 'array', | |||
| $compositor = '', | |||
| $restrictionBase = '', | |||
| $elements = [], | |||
| $attrs = [], | |||
| $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 | ||
| string | $typeClass | |
| string | $phpType | |
| string | $compositor | |
| string | $restrictionBase | |
| array | $elements | |
| array | $attrs | |
| string | $arrayType | @access public |
Definition at line 2033 of file nusoap.php.
| addElement | ( | $attrs | ) |
adds an element to the schema
| array | $attrs | attributes that must include name and type |
Definition at line 2083 of file nusoap.php.
| addSimpleType | ( | $name, | |
| $restrictionBase = '', | |||
| $typeClass = 'simpleType', | |||
| $phpType = 'scalar', | |||
| $enumeration = [] ) |
adds a simple type to the schema
| string | $name | |
| string | $restrictionBase | namespace:name (https://schemas.xmlsoap.org/soap/encoding/:Array) |
| string | $typeClass | (should always be simpleType) |
| string | $phpType | (should always be scalar) |
| array | $enumeration | array of values @access public |
Definition at line 2062 of file nusoap.php.
| CreateTypeName | ( | $ename | ) |
gets a type name for an unnamed type
| string | Element name |
Definition at line 1279 of file nusoap.php.
| 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 1811 of file nusoap.php.
| 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 | $type |
Definition at line 1845 of file nusoap.php.
| parseFile | ( | $xml, | |
| $type ) |
parse an XML file
| string | $xml | path/URL to XML file |
| string | $type | (schema | xml) |
Definition at line 1204 of file nusoap.php.
| parseString | ( | $xml, | |
| $type ) |
parse an XML string
| string | $xml | path or URL |
| string | $type | (schema|xml) @access private |
Definition at line 1231 of file nusoap.php.
| schemaCharacterData | ( | $parser, | |
| $data ) |
element content handler
| string | $parser | XML parser object |
| string | $data | element content @access private |
Definition at line 1665 of file nusoap.php.
| schemaEndElement | ( | $parser, | |
| $name ) |
end-element handler
| string | $parser | XML parser object |
| string | $name | element name @access private |
Definition at line 1625 of file nusoap.php.
| schemaStartElement | ( | $parser, | |
| $name, | |||
| $attrs ) |
start-element handler
| string | $parser | XML parser object |
| string | $name | element name |
| string | $attrs | associative array of attributes @access private |
Definition at line 1296 of file nusoap.php.
| serializeSchema | ( | ) |
| 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 1926 of file nusoap.php.
| 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 1964 of file nusoap.php.
| xdebug | ( | $string | ) |
adds debug data to the clas level debug string
| string | $string | debug data @access private |
Definition at line 1794 of file nusoap.php.
| $attributes = [] |
Definition at line 1143 of file nusoap.php.
| $complexTypes = [] |
Definition at line 1144 of file nusoap.php.
| $complexTypeStack = [] |
Definition at line 1145 of file nusoap.php.
| $currentComplexType = null |
Definition at line 1146 of file nusoap.php.
| $currentElement = null |
Definition at line 1149 of file nusoap.php.
| $currentSimpleType = null |
Definition at line 1152 of file nusoap.php.
| $defaultNamespace = [] |
Definition at line 1161 of file nusoap.php.
| $depth = 0 |
Definition at line 1158 of file nusoap.php.
| $depth_array = [] |
Definition at line 1159 of file nusoap.php.
| $elements = [] |
Definition at line 1147 of file nusoap.php.
| $elementStack = [] |
Definition at line 1148 of file nusoap.php.
| $enclosingNamespaces |
Definition at line 1138 of file nusoap.php.
| $imports = [] |
Definition at line 1154 of file nusoap.php.
| $message = [] |
Definition at line 1160 of file nusoap.php.
| $parser |
Definition at line 1156 of file nusoap.php.
| $position = 0 |
Definition at line 1157 of file nusoap.php.
| $schema = '' |
Definition at line 1135 of file nusoap.php.
| $schemaInfo = [] |
Definition at line 1140 of file nusoap.php.
| $schemaTargetNamespace = '' |
Definition at line 1141 of file nusoap.php.
| $simpleTypes = [] |
Definition at line 1150 of file nusoap.php.
| $simpleTypeStack = [] |
Definition at line 1151 of file nusoap.php.
| $xml = '' |
Definition at line 1136 of file nusoap.php.