Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • cancelBill
  • cancelBillResponse
  • checkBill
  • checkBillResponse
  • createBill
  • createBillResponse
  • getBillList
  • getBillListResponse
  • idna_convert
  • IShopClientWSService
  • IShopServerWSService
  • nusoap_base
  • nusoap_client
  • nusoap_fault
  • nusoap_parser
  • nusoap_server
  • nusoap_xmlschema
  • ReCaptchaResponse
  • Smarty_Internal_Configfileparser
  • Smarty_Internal_Templateparser
  • soap_fault
  • soap_parser
  • soap_server
  • soap_transport_http
  • soapclient
  • soapval
  • TP_yyStackEntry
  • TPC_yyStackEntry
  • updateBill
  • updateBillResponse
  • waIdna
  • wsdl
  • xmlrpc_client
  • xmlrpcmsg
  • xmlrpcresp
  • xmlrpcval
  • XMLSchema

Functions

  • _recaptcha_aes_encrypt
  • _recaptcha_aes_pad
  • _recaptcha_http_post
  • _recaptcha_mailhide_email_parts
  • _recaptcha_mailhide_urlbase64
  • _recaptcha_qsencode
  • _swiftmailer_init
  • decode_chunked
  • generateUpToDateMimeArray
  • guess_encoding
  • is_valid_charset
  • iso8601_decode
  • iso8601_encode
  • iso8601_to_timestamp
  • php_xmlrpc_decode
  • php_xmlrpc_decode_xml
  • php_xmlrpc_encode
  • recaptcha_check_answer
  • recaptcha_get_html
  • recaptcha_get_signup_url
  • recaptcha_mailhide_html
  • recaptcha_mailhide_url
  • smarty_block_wa_js
  • smarty_function_escape_special_chars
  • smarty_function_wa_action
  • smarty_function_wa_block
  • smarty_function_wa_header
  • smarty_function_wa_pagination
  • smarty_function_wa_print_tree
  • smarty_function_wa_snippet
  • smarty_gettext_s_translate
  • smarty_gettext_translate
  • smarty_prefilter_content_nofilter
  • smarty_prefilter_translate
  • timestamp_to_iso8601
  • usleepWindows
  • wa_array_diff_r
  • wa_currency_html
  • xmlrpc_cd
  • xmlrpc_dh
  • xmlrpc_ee
  • xmlrpc_ee_fast
  • xmlrpc_encode_entitites
  • xmlrpc_se
  • xmlrpc_se_any
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class nusoap_xmlschema

parses an XML Schema, allows access to it's data, other utility methods. imperfect, no validation... yet, but quite functional.

nusoap_base
Extended by nusoap_xmlschema

Direct known subclasses

XMLSchema
Author: Dietrich Ayala <dietrich@ganx4.com>
Author: Scott Nichol <snichol@users.sourceforge.net>
Version: $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
Located at wa-plugins/payment/qiwi/vendors/nusoap/nusoap.php
Methods summary
public
# nusoap_xmlschema( string $schema = '', string $xml = '', string $namespaces = array() )

constructor

constructor

Parameters

$schema
string
$schema schema document URI
$xml
string
$xml xml document URI
$namespaces
string
$namespaces namespaces defined in enclosing XML
public boolean
# parseFile( string $xml, string $type )

parse an XML file

parse an XML file

Parameters

$xml
string
$xml path/URL to XML file
$type
string
$type (schema | xml)

Returns

boolean
public
# parseString( string $xml, string $type )

parse an XML string

parse an XML string

Parameters

$xml
string
$xml path or URL
$type
string
$type (schema|xml)
public string
# CreateTypeName( string $ename )

gets a type name for an unnamed type

gets a type name for an unnamed type

Parameters

$ename
string
Element name

Returns

string
A type name for an unnamed type
public
# schemaStartElement( string $parser, string $name, string $attrs )

start-element handler

start-element handler

Parameters

$parser
string
$parser XML parser object
$name
string
$name element name
$attrs
string
$attrs associative array of attributes
public
# schemaEndElement( string $parser, string $name )

end-element handler

end-element handler

Parameters

$parser
string
$parser XML parser object
$name
string
$name element name
public
# schemaCharacterData( string $parser, string $data )

element content handler

element content handler

Parameters

$parser
string
$parser XML parser object
$data
string
$data element content
public
# serializeSchema( )

serialize the schema

serialize the schema

public
# xdebug( string $string )

adds debug data to the clas level debug string

adds debug data to the clas level debug string

Parameters

$string
string
$string debug data
public mixed
# getPHPType( string $type, string $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'

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'

Deprecated

Parameters

$type
string
$type name of defined type
$ns
string
$ns namespace of type

Returns

mixed
public mixed
# getTypeDef( string $type )

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

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

$type
string
$type

Returns

mixed

See

nusoap_xmlschema::addComplexType()
nusoap_xmlschema::addSimpleType()
nusoap_xmlschema::addElement()
public mixed
# serializeTypeDef( string $type )

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

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

Deprecated

Parameters

$type
string
$type name of type

Returns

mixed
public string
# typeToForm( string $name, string $type )

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

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

Deprecated

Parameters

$name
string
$name name for type instance
$type
string
$type name of type

Returns

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

adds a complex type to the schema

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
name
$typeClass
typeClass
(complexType|simpleType|attribute)
$phpType
phpType:
currently supported are array and struct (php assoc array)
$compositor
compositor
(all|sequence|choice)
$restrictionBase
restrictionBase
namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
$elements
nusoap_xmlschema::$elements
= array ( name = array(name=>,type=>) )
$attrs
attrs
= array( array( 'ref' => "http://schemas.xmlsoap.org/soap/encoding/:arrayType", "http://schemas.xmlsoap.org/wsdl/:arrayType" => "string[]" ) )
$arrayType
arrayType:
namespace:name (http://www.w3.org/2001/XMLSchema:string)

See

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

adds a simple type to the schema

adds a simple type to the schema

Parameters

$name
string
$name
$restrictionBase
string
$restrictionBase namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
$typeClass
string
$typeClass (should always be simpleType)
$phpType
string
$phpType (should always be scalar)
$enumeration
array
$enumeration array of values

See

nusoap_xmlschema
nusoap_xmlschema::getTypeDef()
public
# addElement( array $attrs )

adds an element to the schema

adds an element to the schema

Parameters

$attrs
array
$attrs attributes that must include name and type

See

nusoap_xmlschema
Methods inherited from nusoap_base
__toString(), appendDebug(), clearDebug(), contractQname(), debug(), expandEntities(), expandQname(), formatDump(), getDebug(), getDebugAsXMLComment(), getDebugLevel(), getError(), getGlobalDebugLevel(), getLocalPart(), getNamespaceFromPrefix(), getPrefix(), getPrefixFromNamespace(), getmicrotime(), isArraySimpleOrStruct(), nusoap_base(), serializeEnvelope(), serialize_val(), setDebugLevel(), setError(), setGlobalDebugLevel(), varDump()
Properties summary
public string $schema ''
#
public string $xml ''
#
public mixed $enclosingNamespaces
#
public array $schemaInfo array()
#
public string $schemaTargetNamespace ''
#
public array $attributes array()
#
public array $complexTypes array()
#
public array $complexTypeStack array()
#
public mixed $currentComplexType null
#
public array $elements array()
#
public array $elementStack array()
#
public mixed $currentElement null
#
public array $simpleTypes array()
#
public array $simpleTypeStack array()
#
public mixed $currentSimpleType null
#
public array $imports array()
#
public mixed $parser
#
public integer $position 0
#
public integer $depth 0
#
public array $depth_array array()
#
public array $message array()
#
public array $defaultNamespace array()
#
Properties inherited from nusoap_base
$XMLSchemaVersion, $charencoding, $debugLevel, $debug_str, $error_str, $namespaces, $revision, $soap_defencoding, $title, $typemap, $usedNamespaces, $version, $xmlEntities
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0