Documentation

nusoap_server_mime extends nusoap_server
in package

nusoap_server_mime server supporting MIME attachments defined at http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.

Tags
author

Scott Nichol snichol@users.sourceforge.net

author

Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list

access

public

Table of Contents

$charencoding  : bool
toggles automatic encoding of special characters as entities (should always be true, I think)
$debug_flag  : bool
whether to append debug to response as XML comment
$debug_str  : string
Current debug string (manipulated by debug/appendDebug/clearDebug/getDebug/getDebugAsXMLComment)
$debugLevel  : int
the debug level for this instance
$decode_utf8  : bool
toggles whether the parser decodes element content w/ utf8_decode()
$document  : string
SOAP body request portion (incomplete namespace resolution; special characters not escaped) (text)
$error_str  : string
Current error string (manipulated by getError/setError)
$externalWSDLURL  : mixed
URL for WSDL (if one)
$fault  : mixed
SOAP fault for response (or false)
$headers  : array<string|int, mixed>
HTTP headers of request
$methodname  : string
name of method requested
$methodparams  : array<string|int, mixed>
method parameters from request
$methodreturn  : mixed
method return value to place in response
$methodreturnisliteralxml  : bool
whether $methodreturn is a string of literal XML
$methodURI  : string
requested method namespace URI
$mimeContentType  : string
$namespaces  : array<string|int, mixed>
namespaces in an array of prefix => uri
$operations  : array<string|int, mixed>
assoc array of operations => opData; operations are added by the register() method or by parsing an external WSDL definition
$outgoing_headers  : array<string|int, mixed>
HTTP headers of response
$request  : string
HTTP request
$requestAttachments  : array<string|int, mixed>
$requestHeader  : mixed
SOAP Headers from request (parsed)
$requestHeaders  : string
SOAP headers from request (incomplete namespace resolution; special characters not escaped) (text)
$requestSOAP  : string
SOAP payload for request (text)
$response  : string
HTTP response
$responseAttachments  : array<string|int, mixed>
$responseHeaders  : mixed
SOAP headers for response (text or array of soapval or associative array)
$responseSOAP  : string
SOAP payload for response (text)
$result  : string
text indication of result (for debugging)
$revision  : string
CVS revision for HTTP headers.
$soap_defencoding  : string
charset encoding for outgoing messages
$SOAPAction  : string
SOAP Action from request
$title  : string
Identification for HTTP headers.
$typemap  : array<string|int, mixed>
XML Schema types in an array of uri => (array of xml type => php type) is this legacy yet? no, this is used by the nusoap_xmlschema class to verify type => namespace mappings.
$usedNamespaces  : array<string|int, mixed>
namespaces used in the current context, e.g. during serialization
$version  : string
Version for HTTP headers.
$wsdl  : mixed
wsdl instance (if one)
$xml_encoding  : string
character set encoding of incoming (request) messages
$xmlEntities  : array<string|int, mixed>
XML entities to convert
$XMLSchemaVersion  : string
set schema version
__construct()  : mixed
constructor
__toString()  : string
represents the object as a string
add_to_map()  : mixed
add a method to the dispatch map (this has been replaced by the register method)
addAttachment()  : string
adds a MIME attachment to the current response.
appendDebug()  : mixed
adds debug data to the instance debug string without formatting
clearAttachments()  : mixed
clears the MIME attachments for the current response.
clearDebug()  : mixed
clears the current debug data for this instance
configureWSDL()  : mixed
Sets up wsdl object.
contractQname()  : string
contracts (changes namespace to prefix) a qualified name
debug()  : mixed
adds debug data to the instance debug string with formatting
expandEntities()  : mixed
expands entities, e.g. changes '<' to '&lt;'.
expandQname()  : string
expands (changes prefix to namespace) a qualified name
fault()  : mixed
Specify a fault to be returned to the client.
formatDump()  : string
formats a string to be inserted into an HTML stream
getAttachments()  : array<string|int, mixed>
gets the MIME attachments from the current request.
getDebug()  : debug
gets the current debug data for this instance
getDebugAsXMLComment()  : debug
gets the current debug data for this instance as an XML comment this may change the contents of the debug data
getDebugLevel()  : int
gets the debug level for this instance
getError()  : mixed
returns error string if present
getGlobalDebugLevel()  : int
gets the global debug level, which applies to future instances
getHTTPBody()  : string
gets the HTTP body for the current response.
getHTTPContentType()  : string
gets the HTTP content type for the current response.
getHTTPContentTypeCharset()  : string
gets the HTTP content type charset for the current response.
getLocalPart()  : string
returns the local part of a prefixed string returns the original string, if not prefixed
getmicrotime()  : string
returns the time in ODBC canonical form with microseconds
getNamespaceFromPrefix()  : mixed
pass it a prefix, it returns a namespace
getPrefix()  : mixed
returns the prefix part of a prefixed string returns false, if not prefixed
getPrefixFromNamespace()  : mixed
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace
invoke_method()  : mixed
invokes a PHP function for the requested SOAP method
isArraySimpleOrStruct()  : string
detect if array is a simple array or a struct (associative array)
parse_http_headers()  : mixed
parses HTTP request headers.
parse_request()  : mixed
parses a request
parseRequest()  : mixed
processes SOAP message received from client
register()  : mixed
register a service function with the server
send_response()  : mixed
sends an HTTP response
serialize_return()  : mixed
serializes the return value from a PHP function into a full SOAP Envelope
serialize_val()  : string
serializes PHP values in accordance w/ section 5. Type information is not serialized if $use == 'literal'.
serializeEnvelope()  : string
serializes a message
service()  : mixed
processes request and returns response
setDebugLevel()  : mixed
sets the debug level for this instance
setError()  : bool
sets error string
setGlobalDebugLevel()  : mixed
sets the global debug level, which applies to future instances
varDump()  : string
Returns a string with the output of var_dump
verify_method()  : bool
takes the value that was created by parsing the request and compares to the method's signature, if available.

Properties

$charencoding

toggles automatic encoding of special characters as entities (should always be true, I think)

public bool $charencoding = rue
Tags
access

private

$debug_flag

whether to append debug to response as XML comment

public bool $debug_flag = alse
Tags
access

public

$debug_str

Current debug string (manipulated by debug/appendDebug/clearDebug/getDebug/getDebugAsXMLComment)

public string $debug_str = ''
Tags
access

private

$debugLevel

the debug level for this instance

public int $debugLevel
Tags
access

private

$decode_utf8

toggles whether the parser decodes element content w/ utf8_decode()

public bool $decode_utf8 = rue
Tags
access

public

$document

SOAP body request portion (incomplete namespace resolution; special characters not escaped) (text)

public string $document = ''
Tags
access

public

$error_str

Current error string (manipulated by getError/setError)

public string $error_str = ''
Tags
access

private

$externalWSDLURL

URL for WSDL (if one)

public mixed $externalWSDLURL = alse
Tags
access

private

$fault

SOAP fault for response (or false)

public mixed $fault = alse
Tags
access

private

$headers

HTTP headers of request

public array<string|int, mixed> $headers = array()
Tags
access

private

$methodname

name of method requested

public string $methodname = ''
Tags
access

private

$methodparams

method parameters from request

public array<string|int, mixed> $methodparams = array()
Tags
access

private

$methodreturn

method return value to place in response

public mixed $methodreturn = alse
Tags
access

private

$methodreturnisliteralxml

whether $methodreturn is a string of literal XML

public bool $methodreturnisliteralxml = alse
Tags
access

public

$methodURI

requested method namespace URI

public string $methodURI = ''
Tags
access

private

$mimeContentType

public string $mimeContentType
Tags
access

private

$namespaces

namespaces in an array of prefix => uri

public array<string|int, mixed> $namespaces = array('SOAP-ENV' => 'http://schemas.xmlsoap.org/soap/envelope/', 'xsd' => 'http://www.w3.org/2001/XMLSchema', 'xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'SOAP-ENC' => 'http://schemas.xmlsoap.org/soap/encoding/')

this is "seeded" by a set of constants, but it may be altered by code

Tags
access

public

$operations

assoc array of operations => opData; operations are added by the register() method or by parsing an external WSDL definition

public array<string|int, mixed> $operations = array()
Tags
access

private

$outgoing_headers

HTTP headers of response

public array<string|int, mixed> $outgoing_headers = array()
Tags
access

public

$request

HTTP request

public string $request = ''
Tags
access

private

$requestAttachments

public array<string|int, mixed> $requestAttachments = array()

Each array element in the return is an associative array with keys data, filename, contenttype, cid

Tags
access

private

$requestHeader

SOAP Headers from request (parsed)

public mixed $requestHeader = ull
Tags
access

public

$requestHeaders

SOAP headers from request (incomplete namespace resolution; special characters not escaped) (text)

public string $requestHeaders = ''
Tags
access

public

$requestSOAP

SOAP payload for request (text)

public string $requestSOAP = ''
Tags
access

public

$response

HTTP response

public string $response = ''
Tags
access

private

$responseAttachments

public array<string|int, mixed> $responseAttachments

Each array element in the return is an associative array with keys data, filename, contenttype, cid

Tags
access

private

$responseHeaders

SOAP headers for response (text or array of soapval or associative array)

public mixed $responseHeaders = ''
Tags
access

public

$responseSOAP

SOAP payload for response (text)

public string $responseSOAP = ''
Tags
access

private

$result

text indication of result (for debugging)

public string $result = 'successful'
Tags
access

private

$revision

CVS revision for HTTP headers.

public string $revision = '$Revision: 1.123 $'
Tags
access

private

$soap_defencoding

charset encoding for outgoing messages

public string $soap_defencoding = 'ISO-8859-1'
Tags
access

public

$SOAPAction

SOAP Action from request

public string $SOAPAction = ''
Tags
access

private

$title

Identification for HTTP headers.

public string $title = 'NuSOAP'
Tags
access

private

$typemap

XML Schema types in an array of uri => (array of xml type => php type) is this legacy yet? no, this is used by the nusoap_xmlschema class to verify type => namespace mappings.

public array<string|int, mixed> $typemap = array('http://www.w3.org/2001/XMLSchema' => array( 'string' => 'string', 'boolean' => 'boolean', 'float' => 'double', 'double' => 'double', 'decimal' => 'double', 'duration' => '', 'dateTime' => 'string', 'time' => 'string', 'date' => 'string', 'gYearMonth' => '', 'gYear' => '', 'gMonthDay' => '', 'gDay' => '', 'gMonth' => '', 'hexBinary' => 'string', 'base64Binary' => 'string', // abstract "any" types 'anyType' => 'string', 'anySimpleType' => 'string', // derived datatypes 'normalizedString' => 'string', 'token' => 'string', 'language' => '', 'NMTOKEN' => '', 'NMTOKENS' => '', 'Name' => '', 'NCName' => '', 'ID' => '', 'IDREF' => '', 'IDREFS' => '', 'ENTITY' => '', 'ENTITIES' => '', 'integer' => 'integer', 'nonPositiveInteger' => 'integer', 'negativeInteger' => 'integer', 'long' => 'integer', 'int' => 'integer', 'short' => 'integer', 'byte' => 'integer', 'nonNegativeInteger' => 'integer', 'unsignedLong' => '', 'unsignedInt' => '', 'unsignedShort' => '', 'unsignedByte' => '', 'positiveInteger' => '', ), 'http://www.w3.org/2000/10/XMLSchema' => array('i4' => '', 'int' => 'integer', 'boolean' => 'boolean', 'string' => 'string', 'double' => 'double', 'float' => 'double', 'dateTime' => 'string', 'timeInstant' => 'string', 'base64Binary' => 'string', 'base64' => 'string', 'ur-type' => 'array'), 'http://www.w3.org/1999/XMLSchema' => array('i4' => '', 'int' => 'integer', 'boolean' => 'boolean', 'string' => 'string', 'double' => 'double', 'float' => 'double', 'dateTime' => 'string', 'timeInstant' => 'string', 'base64Binary' => 'string', 'base64' => 'string', 'ur-type' => 'array'), 'http://soapinterop.org/xsd' => array('SOAPStruct' => 'struct'), 'http://schemas.xmlsoap.org/soap/encoding/' => array('base64' => 'string', 'array' => 'array', 'Array' => 'array'), 'http://xml.apache.org/xml-soap' => array('Map'))
Tags
access

public

$usedNamespaces

namespaces used in the current context, e.g. during serialization

public array<string|int, mixed> $usedNamespaces = array()
Tags
access

private

$version

Version for HTTP headers.

public string $version = '0.9.5'
Tags
access

private

$wsdl

wsdl instance (if one)

public mixed $wsdl = alse
Tags
access

private

$xml_encoding

character set encoding of incoming (request) messages

public string $xml_encoding = ''
Tags
access

public

$xmlEntities

XML entities to convert

public array<string|int, mixed> $xmlEntities = array('quot' => '"', 'amp' => '&', 'lt' => '<', 'gt' => '>', 'apos' => "'")
Tags
access

public

deprecated
see
expandEntities

$XMLSchemaVersion

set schema version

public string $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema'
Tags
access

public

Methods

__construct()

constructor

public __construct() : mixed
Tags
access

public

Return values
mixed

__toString()

represents the object as a string

public __toString() : string
Tags
access

public

Return values
string

add_to_map()

add a method to the dispatch map (this has been replaced by the register method)

public add_to_map(string $methodname, string $in, string $out) : mixed
Parameters
$methodname : string
$in : string

array of input values

$out : string

array of output values

Tags
access

public

deprecated
Return values
mixed

addAttachment()

adds a MIME attachment to the current response.

public addAttachment(string $data[, string $filename = '' ][, string $contenttype = 'application/octet-stream' ][, string $cid = false ]) : string

If the $data parameter contains an empty string, this method will read the contents of the file named by the $filename parameter.

If the $cid parameter is false, this method will generate the cid.

Parameters
$data : string

The data of the attachment

$filename : string = ''

The filename of the attachment (default is empty string)

$contenttype : string = 'application/octet-stream'

The MIME Content-Type of the attachment (default is application/octet-stream)

$cid : string = false

The content-id (cid) of the attachment (default is false)

Tags
access

public

Return values
string

The content-id (cid) of the attachment

appendDebug()

adds debug data to the instance debug string without formatting

public appendDebug(string $string) : mixed
Parameters
$string : string

debug data

Tags
access

public

Return values
mixed

clearAttachments()

clears the MIME attachments for the current response.

public clearAttachments() : mixed
Tags
access

public

Return values
mixed

clearDebug()

clears the current debug data for this instance

public clearDebug() : mixed
Tags
access

public

Return values
mixed

configureWSDL()

Sets up wsdl object.

public configureWSDL(string $serviceName[, mixed $namespace = false ][, mixed $endpoint = false ][, string $style = 'rpc' ][, string $transport = 'http://schemas.xmlsoap.org/soap/http' ][, mixed $schemaTargetNamespace = false ]) : mixed

Acts as a flag to enable internal WSDL generation

Parameters
$serviceName : string

, name of the service

$namespace : mixed = false

optional 'tns' service namespace or false

$endpoint : mixed = false

optional URL of service endpoint or false

$style : string = 'rpc'

optional (rpc|document) WSDL style (also specified by operation)

$transport : string = 'http://schemas.xmlsoap.org/soap/http'

optional SOAP transport

$schemaTargetNamespace : mixed = false

optional 'types' targetNamespace for service schema or false

Return values
mixed

contractQname()

contracts (changes namespace to prefix) a qualified name

public contractQname(string $qname) : string
Parameters
$qname : string

qname

Tags
access

private

Return values
string

contracted qname

debug()

adds debug data to the instance debug string with formatting

public debug(string $string) : mixed
Parameters
$string : string

debug data

Tags
access

private

Return values
mixed

expandEntities()

expands entities, e.g. changes '<' to '&lt;'.

public expandEntities(string $val) : mixed
Parameters
$val : string

The string in which to expand entities.

Tags
access

private

Return values
mixed

expandQname()

expands (changes prefix to namespace) a qualified name

public expandQname(string $qname) : string
Parameters
$qname : string

qname

Tags
access

private

Return values
string

expanded qname

fault()

Specify a fault to be returned to the client.

public fault(string $faultcode, string $faultstring[, string $faultactor = '' ][, string $faultdetail = '' ]) : mixed

This also acts as a flag to the server that a fault has occured.

Parameters
$faultcode : string
$faultstring : string
$faultactor : string = ''
$faultdetail : string = ''
Tags
access

public

Return values
mixed

formatDump()

formats a string to be inserted into an HTML stream

public formatDump(string $str) : string
Parameters
$str : string

The string to format

Tags
access

public

deprecated
Return values
string

The formatted string

getAttachments()

gets the MIME attachments from the current request.

public getAttachments() : array<string|int, mixed>

Each array element in the return is an associative array with keys data, filename, contenttype, cid. These keys correspond to the parameters for addAttachment.

Tags
access

public

Return values
array<string|int, mixed>

The attachments.

getDebug()

gets the current debug data for this instance

public getDebug() : debug
Tags
access

public

Return values
debug

data

getDebugAsXMLComment()

gets the current debug data for this instance as an XML comment this may change the contents of the debug data

public getDebugAsXMLComment() : debug
Tags
access

public

Return values
debug

data as an XML comment

getDebugLevel()

gets the debug level for this instance

public getDebugLevel() : int
Tags
access

public

Return values
int

Debug level 0-9, where 0 turns off

getError()

returns error string if present

public getError() : mixed
Tags
access

public

Return values
mixed

error string or false

getGlobalDebugLevel()

gets the global debug level, which applies to future instances

public getGlobalDebugLevel() : int
Tags
access

public

Return values
int

Debug level 0-9, where 0 turns off

getHTTPBody()

gets the HTTP body for the current response.

public getHTTPBody(string $soapmsg) : string
Parameters
$soapmsg : string

The SOAP payload

Tags
access

private

Return values
string

The HTTP body, which includes the SOAP payload

getHTTPContentType()

gets the HTTP content type for the current response.

public getHTTPContentType() : string

Note: getHTTPBody must be called before this.

Tags
access

private

Return values
string

the HTTP content type for the current response.

getHTTPContentTypeCharset()

gets the HTTP content type charset for the current response.

public getHTTPContentTypeCharset() : string

returns false for non-text content types.

Note: getHTTPBody must be called before this.

Tags
access

private

Return values
string

the HTTP content type charset for the current response.

getLocalPart()

returns the local part of a prefixed string returns the original string, if not prefixed

public getLocalPart(string $str) : string
Parameters
$str : string

The prefixed string

Tags
access

public

Return values
string

The local part

getmicrotime()

returns the time in ODBC canonical form with microseconds

public getmicrotime() : string
Tags
access

public

Return values
string

The time in ODBC canonical form with microseconds

getNamespaceFromPrefix()

pass it a prefix, it returns a namespace

public getNamespaceFromPrefix(string $prefix) : mixed
Parameters
$prefix : string

The prefix

Tags
access

public

Return values
mixed

The namespace, false if no namespace has the specified prefix

getPrefix()

returns the prefix part of a prefixed string returns false, if not prefixed

public getPrefix(string $str) : mixed
Parameters
$str : string

The prefixed string

Tags
access

public

Return values
mixed

The prefix or false if there is no prefix

getPrefixFromNamespace()

returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace

public getPrefixFromNamespace(string $ns) : mixed
Parameters
$ns : string

The namespace

Tags
access

public

Return values
mixed

The prefix, false if the namespace has no prefixes

invoke_method()

invokes a PHP function for the requested SOAP method

public invoke_method() : mixed

The following fields are set by this function (when successful)

methodreturn

Note that the PHP function that is called may also set the following fields to affect the response sent to the client

responseHeaders outgoing_headers

This sets the fault field on error

Tags
access

private

Return values
mixed

isArraySimpleOrStruct()

detect if array is a simple array or a struct (associative array)

public isArraySimpleOrStruct(mixed $val) : string
Parameters
$val : mixed

The PHP array

Tags
access

private

Return values
string

(arraySimple|arrayStruct)

parse_http_headers()

parses HTTP request headers.

public parse_http_headers() : mixed

The following fields are set by this function (when successful)

headers request xml_encoding SOAPAction

Tags
access

private

Return values
mixed

parse_request()

parses a request

public parse_request([string $data = '' ]) : mixed

The following fields are set by this function (when successful)

headers request xml_encoding SOAPAction request requestSOAP methodURI methodname methodparams requestHeaders document

This sets the fault field on error

Parameters
$data : string = ''

XML string

Tags
access

private

Return values
mixed

parseRequest()

processes SOAP message received from client

public parseRequest(array<string|int, mixed> $headers, string $data) : mixed
Parameters
$headers : array<string|int, mixed>

The HTTP headers

$data : string

unprocessed request data from client

Tags
access

private

Return values
mixed

value of the message, decoded into a PHP type

register()

register a service function with the server

public register(string $name[, array<string|int, mixed> $in = array() ][, array<string|int, mixed> $out = array() ][, mixed $namespace = false ][, mixed $soapaction = false ][, mixed $style = false ][, mixed $use = false ][, string $documentation = '' ][, string $encodingStyle = '' ]) : mixed
Parameters
$name : string

the name of the PHP function, class.method or class..method

$in : array<string|int, mixed> = array()

assoc array of input values: key = param name, value = param type

$out : array<string|int, mixed> = array()

assoc array of output values: key = param name, value = param type

$namespace : mixed = false

the element namespace for the method or false

$soapaction : mixed = false

the soapaction for the method or false

$style : mixed = false

optional (rpc|document) or false Note: when 'document' is specified, parameter and return wrappers are created for you automatically

$use : mixed = false

optional (encoded|literal) or false

$documentation : string = ''

optional Description to include in WSDL

$encodingStyle : string = ''

optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded)

Tags
access

public

Return values
mixed

send_response()

sends an HTTP response

public send_response() : mixed

The following fields are set by this function (when successful)

outgoing_headers response

Tags
access

private

Return values
mixed

serialize_return()

serializes the return value from a PHP function into a full SOAP Envelope

public serialize_return() : mixed

The following fields are set by this function (when successful)

responseSOAP

This sets the fault field on error

Tags
access

private

Return values
mixed

serialize_val()

serializes PHP values in accordance w/ section 5. Type information is not serialized if $use == 'literal'.

public serialize_val(mixed $val[, string $name = false ][, string $type = false ][, string $name_ns = false ][, string $type_ns = false ][, array<string|int, mixed> $attributes = false ][, string $use = 'encoded' ][, bool $soapval = false ]) : string
Parameters
$val : mixed

The value to serialize

$name : string = false

The name (local part) of the XML element

$type : string = false

The XML schema type (local part) for the element

$name_ns : string = false

The namespace for the name of the XML element

$type_ns : string = false

The namespace for the type of the element

$attributes : array<string|int, mixed> = false

The attributes to serialize as name=>value pairs

$use : string = 'encoded'

The WSDL "use" (encoded|literal)

$soapval : bool = false

Whether this is called from soapval.

Tags
access

public

Return values
string

The serialized element, possibly with child elements

serializeEnvelope()

serializes a message

public serializeEnvelope(string $body[, mixed $headers = false ][, array<string|int, mixed> $namespaces = array() ][, string $style = 'rpc' ][, string $use = 'encoded' ][, string $encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/' ]) : string
Parameters
$body : string

the XML of the SOAP body

$headers : mixed = false

optional string of XML with SOAP header content, or array of soapval objects for SOAP headers, or associative array

$namespaces : array<string|int, mixed> = array()

optional the namespaces used in generating the body and headers

$style : string = 'rpc'

optional (rpc|document)

$use : string = 'encoded'

optional (encoded|literal)

$encodingStyle : string = 'http://schemas.xmlsoap.org/soap/encoding/'

optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded)

Tags
access

public

Return values
string

the message

service()

processes request and returns response

public service(string $data) : mixed
Parameters
$data : string

usually is the value of $HTTP_RAW_POST_DATA

Tags
access

public

Return values
mixed

setDebugLevel()

sets the debug level for this instance

public setDebugLevel(int $level) : mixed
Parameters
$level : int

Debug level 0-9, where 0 turns off

Tags
access

public

Return values
mixed

setError()

sets error string

public setError(mixed $str) : bool
Parameters
$str : mixed
Tags
access

private

Return values
bool

$string error string

setGlobalDebugLevel()

sets the global debug level, which applies to future instances

public setGlobalDebugLevel(int $level) : mixed
Parameters
$level : int

Debug level 0-9, where 0 turns off

Tags
access

public

Return values
mixed

varDump()

Returns a string with the output of var_dump

public varDump(mixed $data) : string
Parameters
$data : mixed

The variable to var_dump

Tags
access

public

Return values
string

The output of var_dump

verify_method()

takes the value that was created by parsing the request and compares to the method's signature, if available.

public verify_method(string $operation, array<string|int, mixed> $request) : bool
Parameters
$operation : string

The operation to be invoked

$request : array<string|int, mixed>

The array of parameter values

Tags
access

private

Return values
bool

Whether the operation was found

Search results