Documentation

soapclient extends nusoap_client
in package

For backwards compatiblity, define soapclient unless the PHP SOAP extension is loaded.

Table of Contents

$authtype  : mixed
$bindingType  : mixed
$certRequest  : mixed
$charencoding  : bool
toggles automatic encoding of special characters as entities (should always be true, I think)
$cookies  : mixed
$curl_options  : mixed
$debug_str  : string
Current debug string (manipulated by debug/appendDebug/clearDebug/getDebug/getDebugAsXMLComment)
$debugLevel  : int
the debug level for this instance
$decode_utf8  : mixed
$defaultRpcParams  : mixed
$document  : mixed
$endpoint  : mixed
$endpointType  : mixed
$error_str  : string
Current error string (manipulated by getError/setError)
$fault  : fault
$faultcode  : faultcode
$faultdetail  : faultdetail
$faultstring  : faultstring
$forceEndpoint  : mixed
$http_encoding  : mixed
$namespaces  : array<string|int, mixed>
namespaces in an array of prefix => uri
$operations  : mixed
$password  : mixed
$persistentConnection  : mixed
$portName  : mixed
$proxyhost  : mixed
$proxypassword  : mixed
$proxyport  : mixed
$proxyusername  : mixed
$request  : mixed
$requestHeaders  : mixed
$response  : mixed
$response_timeout  : mixed
$responseData  : mixed
$responseHeader  : mixed
$responseHeaders  : mixed
$revision  : string
CVS revision for HTTP headers.
$soap_defencoding  : string
charset encoding for outgoing messages
$timeout  : mixed
$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.
$use_curl  : mixed
$usedNamespaces  : array<string|int, mixed>
namespaces used in the current context, e.g. during serialization
$username  : mixed
$version  : string
Version for HTTP headers.
$xml_encoding  : mixed
$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
_getProxyClassCode()  : string
dynamically creates proxy class code
appendDebug()  : mixed
adds debug data to the instance debug string without formatting
call()  : mixed
calls method, returns PHP native type
checkCookies()  : bool
checks all Cookies and delete those which are expired
checkWSDL()  : mixed
check WSDL passed as an instance or pulled from an endpoint
clearDebug()  : mixed
clears the current debug data for this instance
contractQname()  : string
contracts (changes namespace to prefix) a qualified name
debug()  : mixed
adds debug data to the instance debug string with formatting
decodeUTF8()  : bool
expandEntities()  : mixed
expands entities, e.g. changes '<' to '&lt;'.
expandQname()  : string
expands (changes prefix to namespace) a qualified name
formatDump()  : string
formats a string to be inserted into an HTML stream
getCookies()  : array<string|int, mixed>
gets all Cookies
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
getDefaultRpcParams()  : bool
gets the default RPC parameter setting.
getError()  : mixed
returns error string if present
getGlobalDebugLevel()  : int
gets the global debug level, which applies to future instances
getHeader()  : mixed
get the SOAP response Header (parsed)
getHeaders()  : string
get the SOAP response headers (namespace resolution incomplete)
getHTTPBody()  : string
gets the HTTP body for the current request.
getHTTPContentType()  : string
gets the HTTP content type for the current request.
getHTTPContentTypeCharset()  : string
gets the HTTP content type charset for the current request.
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
getOperationData()  : array<string|int, mixed>
get available data pertaining to an operation
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
getProxy()  : object
dynamically creates an instance of a proxy class, allowing user to directly call methods from wsdl
getProxyClassCode()  : string
dynamically creates proxy class code
isArraySimpleOrStruct()  : string
detect if array is a simple array or a struct (associative array)
loadWSDL()  : mixed
instantiate wsdl object and parse wsdl file
parseResponse()  : mixed
processes SOAP message returned from server
send()  : mixed
send the SOAP message
serialize_val()  : string
serializes PHP values in accordance w/ section 5. Type information is not serialized if $use == 'literal'.
serializeEnvelope()  : string
serializes a message
setCookie()  : bool
adds a new Cookie into $this->cookies array
setCredentials()  : mixed
if authenticating, set user credentials here
setCurlOption()  : mixed
sets user-specified cURL options
setDebugLevel()  : mixed
sets the debug level for this instance
setDefaultRpcParams()  : mixed
sets the default RPC parameter setting.
setEndpoint()  : mixed
sets the SOAP endpoint, which can override WSDL
setError()  : bool
sets error string
setGlobalDebugLevel()  : mixed
sets the global debug level, which applies to future instances
setHeaders()  : mixed
set the SOAP headers
setHTTPEncoding()  : mixed
use HTTP encoding
setHTTPProxy()  : mixed
set proxy info here
setUseCURL()  : mixed
Set whether to try to use cURL connections if possible
UpdateCookies()  : bool
updates the current cookies with a new set
useHTTPPersistentConnection()  : mixed
use HTTP persistent connections if possible
varDump()  : string
Returns a string with the output of var_dump

Properties

$authtype

public mixed $authtype = ''

$bindingType

public mixed $bindingType = ''

$certRequest

public mixed $certRequest = array()

$charencoding

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

public bool $charencoding = rue
Tags
access

private

$cookies

public mixed $cookies = array()

$curl_options

public mixed $curl_options = array()

$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

public mixed $decode_utf8 = rue

$defaultRpcParams

public mixed $defaultRpcParams = alse

$document

public mixed $document = ''

$endpoint

public mixed $endpoint

$endpointType

public mixed $endpointType = ''

$error_str

Current error string (manipulated by getError/setError)

public string $error_str = ''
Tags
access

private

$fault

public fault $fault
Tags
access

public

$faultcode

public faultcode $faultcode
Tags
access

public

$faultdetail

public faultdetail $faultdetail
Tags
access

public

$faultstring

public faultstring $faultstring
Tags
access

public

$forceEndpoint

public mixed $forceEndpoint = ''

$http_encoding

public mixed $http_encoding = alse

$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

public mixed $operations = array()

$password

public mixed $password = ''

$persistentConnection

public mixed $persistentConnection = alse

$portName

public mixed $portName = ''

$proxyhost

public mixed $proxyhost = ''

$proxypassword

public mixed $proxypassword = ''

$proxyport

public mixed $proxyport = ''

$proxyusername

public mixed $proxyusername = ''

$request

public mixed $request = ''

$requestHeaders

public mixed $requestHeaders = alse

$response

public mixed $response = ''

$response_timeout

public mixed $response_timeout = 30

$responseData

public mixed $responseData = ''

$responseHeader

public mixed $responseHeader = ull

$responseHeaders

public mixed $responseHeaders = ''

$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

$timeout

public mixed $timeout = 0

$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

$use_curl

public mixed $use_curl = alse

$usedNamespaces

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

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

private

$username

public mixed $username = ''

$version

Version for HTTP headers.

public string $version = '0.9.5'
Tags
access

private

$xml_encoding

public mixed $xml_encoding = ''

$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

_getProxyClassCode()

dynamically creates proxy class code

public _getProxyClassCode(mixed $r) : string
Parameters
$r : mixed
Tags
access

private

Return values
string

PHP/NuSOAP code for the proxy class

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

call()

calls method, returns PHP native type

public call(string $operation[, mixed $params = array() ][, string $namespace = 'http://tempuri.org' ][, string $soapAction = '' ][, mixed $headers = false ][, bool $rpcParams = null ][, string $style = 'rpc' ][, string $use = 'encoded' ]) : mixed
Parameters
$operation : string

SOAP server URL or path

$params : mixed = array()

An array, associative or simple, of the parameters for the method call, or a string that is the XML for the call. For rpc style, this call will wrap the XML in a tag named after the method, as well as the SOAP Envelope and Body. For document style, this will only wrap with the Envelope and Body. IMPORTANT: when using an array with document style, in which case there is really one parameter, the root of the fragment used in the call, which encloses what programmers normally think of parameters. A parameter array must include the wrapper.

$namespace : string = 'http://tempuri.org'

optional method namespace (WSDL can override)

$soapAction : string = ''

optional SOAPAction value (WSDL can override)

$headers : mixed = false

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

$rpcParams : bool = null

optional (no longer used)

$style : string = 'rpc'

optional (rpc|document) the style to use when serializing parameters (WSDL can override)

$use : string = 'encoded'

optional (encoded|literal) the use when serializing parameters (WSDL can override)

Tags
access

public

Return values
mixed

response from SOAP call, normally an associative array mirroring the structure of the XML response, false for certain fatal errors

checkCookies()

checks all Cookies and delete those which are expired

public checkCookies() : bool
Tags
access

private

Return values
bool

always return true

checkWSDL()

check WSDL passed as an instance or pulled from an endpoint

public checkWSDL() : mixed
Tags
access

private

Return values
mixed

clearDebug()

clears the current debug data for this instance

public clearDebug() : mixed
Tags
access

public

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

decodeUTF8()

public decodeUTF8( $bool) : bool
Parameters
$bool :
Return values
bool

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

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

getCookies()

gets all Cookies

public getCookies() : array<string|int, mixed>
Tags
access

public

Return values
array<string|int, mixed>

with all internal cookies

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

getDefaultRpcParams()

gets the default RPC parameter setting.

public getDefaultRpcParams() : bool

If true, default is that call params are like RPC even for document style. Each call() can override this value.

This is no longer used.

Tags
access

public

deprecated
Return values
bool

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

getHeader()

get the SOAP response Header (parsed)

public getHeader() : mixed
Tags
access

public

Return values
mixed

getHeaders()

get the SOAP response headers (namespace resolution incomplete)

public getHeaders() : string
Tags
access

public

Return values
string

getHTTPBody()

gets the HTTP body for the current request.

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 request.

public getHTTPContentType() : string

Note: getHTTPBody must be called before this.

Tags
access

private

Return values
string

the HTTP content type for the current request.

getHTTPContentTypeCharset()

gets the HTTP content type charset for the current request.

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 request.

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

getOperationData()

get available data pertaining to an operation

public getOperationData(string $operation) : array<string|int, mixed>
Parameters
$operation : string

operation name

Tags
access

public

Return values
array<string|int, mixed>

array of data pertaining to the operation

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

getProxy()

dynamically creates an instance of a proxy class, allowing user to directly call methods from wsdl

public getProxy() : object
Tags
access

public

Return values
object

soap_proxy object

getProxyClassCode()

dynamically creates proxy class code

public getProxyClassCode() : string
Tags
access

public

Return values
string

PHP/NuSOAP code for the proxy class

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)

loadWSDL()

instantiate wsdl object and parse wsdl file

public loadWSDL() : mixed
Tags
access

public

Return values
mixed

parseResponse()

processes SOAP message returned from server

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

The HTTP headers

$data : string

unprocessed response data from server

Tags
access

private

Return values
mixed

value of the message, decoded into a PHP type

send()

send the SOAP message

public send(string $msg[, string $soapaction = '' ], int $timeout[, int $response_timeout = 30 ]) : mixed

Note: if the operation has multiple return values the return value of this method will be an array of those values.

Parameters
$msg : string

a SOAPx4 soapmsg object

$soapaction : string = ''

SOAPAction value

$timeout : int

set connection timeout in seconds

$response_timeout : int = 30

set response timeout in seconds

Tags
access

private

Return values
mixed

native PHP types.

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

setCookie()

adds a new Cookie into $this->cookies array

public setCookie(string $name, string $value) : bool
Parameters
$name : string

Cookie Name

$value : string

Cookie Value

Tags
access

public

Return values
bool

if cookie-set was successful returns true, else false

setCredentials()

if authenticating, set user credentials here

public setCredentials(string $username, string $password[, string $authtype = 'basic' ][, array<string|int, mixed> $certRequest = array() ]) : mixed
Parameters
$username : string
$password : string
$authtype : string = 'basic'

(basic|digest|certificate|ntlm)

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

(keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs)

Tags
access

public

Return values
mixed

setCurlOption()

sets user-specified cURL options

public setCurlOption(mixed $option, mixed $value) : mixed
Parameters
$option : mixed

The cURL option (always integer?)

$value : mixed

The cURL option value

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

setDefaultRpcParams()

sets the default RPC parameter setting.

public setDefaultRpcParams(bool $rpcParams) : mixed

If true, default is that call params are like RPC even for document style Each call() can override this value.

This is no longer used.

Parameters
$rpcParams : bool
Tags
access

public

deprecated
Return values
mixed

setEndpoint()

sets the SOAP endpoint, which can override WSDL

public setEndpoint(string $endpoint) : mixed
Parameters
$endpoint : string

The endpoint URL to use, or empty string or false to prevent override

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

setHeaders()

set the SOAP headers

public setHeaders(mixed $headers) : mixed
Parameters
$headers : mixed

String of XML with SOAP header content, or array of soapval objects for SOAP headers

Tags
access

public

Return values
mixed

setHTTPEncoding()

use HTTP encoding

public setHTTPEncoding([string $enc = 'gzip, deflate' ]) : mixed
Parameters
$enc : string = 'gzip, deflate'

HTTP encoding

Tags
access

public

Return values
mixed

setHTTPProxy()

set proxy info here

public setHTTPProxy(string $proxyhost, string $proxyport[, string $proxyusername = '' ][, string $proxypassword = '' ]) : mixed
Parameters
$proxyhost : string
$proxyport : string
$proxyusername : string = ''
$proxypassword : string = ''
Tags
access

public

Return values
mixed

setUseCURL()

Set whether to try to use cURL connections if possible

public setUseCURL(bool $use) : mixed
Parameters
$use : bool

Whether to try to use cURL

Tags
access

public

Return values
mixed

UpdateCookies()

updates the current cookies with a new set

public UpdateCookies(array<string|int, mixed> $cookies) : bool
Parameters
$cookies : array<string|int, mixed>

new cookies with which to update current ones

Tags
access

private

Return values
bool

always return true

useHTTPPersistentConnection()

use HTTP persistent connections if possible

public useHTTPPersistentConnection() : mixed
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

Search results