Properties

$debug

$debug : boolean

Debug flag

Type

boolean

$xmlrpcI4

$xmlrpcI4 : string

I4 data type

Type

string

$xmlrpcInt

$xmlrpcInt : string

Integer data type

Type

string

$xmlrpcBoolean

$xmlrpcBoolean : string

Boolean data type

Type

string

$xmlrpcDouble

$xmlrpcDouble : string

Double data type

Type

string

$xmlrpcString

$xmlrpcString : string

String data type

Type

string

$xmlrpcDateTime

$xmlrpcDateTime : string

DateTime format

Type

string

$xmlrpcBase64

$xmlrpcBase64 : string

Base64 data type

Type

string

$xmlrpcArray

$xmlrpcArray : string

Array data type

Type

string

$xmlrpcStruct

$xmlrpcStruct : string

Struct data type

Type

string

$xmlrpcTypes

$xmlrpcTypes : array

Data types list

Type

array

$valid_parents

$valid_parents : array

Valid parents list

Type

array

$xmlrpcerr

$xmlrpcerr : array

Response error numbers list

Type

array

$xmlrpcstr

$xmlrpcstr : array<mixed,string>

Response error messages list

Type

array<mixed,string>

$xmlrpc_defencoding

$xmlrpc_defencoding : string

Encoding charset

Type

string

$xmlrpcName

$xmlrpcName : string

XML-RPC client name

Type

string

$xmlrpcVersion

$xmlrpcVersion : string

XML-RPC version

Type

string

$xmlrpcerruser

$xmlrpcerruser : integer

Start of user errors

Type

integer

$xmlrpcerrxml

$xmlrpcerrxml : integer

Start of XML parse errors

Type

integer

$xmlrpc_backslash

$xmlrpc_backslash : string

Backslash replacement value

Type

string

$client

$client : object

XML-RPC Client object

Type

object

$method

$method : string

XML-RPC Method name

Type

string

$data

$data : array

XML-RPC Data

Type

array

$message

$message : string

XML-RPC Message

Type

string

$error

$error : string

Request error message

Type

string

$result

$result : object

XML-RPC result object

Type

object

$response

$response : array

XML-RPC Response

Type

array

$xss_clean

$xss_clean : boolean

XSS Filter flag

Type

boolean

$payload

$payload : string

Payload

Type

string

$method_name

$method_name : string

Method name

Type

string

$params

$params : array

Parameter list

Type

array

$xh

$xh : array

XH?

Type

array

Methods

__construct()

__construct(string  $method, array  $pars = FALSE) : void

Constructor

Initializes property default values

Parameters

string $method
array $pars

initialize()

initialize(array  $config = array()) : void

Initialize

Parameters

array $config

server()

server(string  $url, integer  $port = 80, string  $proxy = FALSE, integer  $proxy_port = 8080) : void

Parse server URL

Parameters

string $url
integer $port
string $proxy
integer $proxy_port

timeout()

timeout(integer  $seconds = 5) : void

Set Timeout

Parameters

integer $seconds

method()

method(string  $function) : void

Set Methods

Parameters

string $function

Method name

request()

request(array  $incoming) : void

Take Array of Data and Create Objects

Parameters

array $incoming

set_debug()

set_debug(boolean  $flag = TRUE) : void

Set Debug

Parameters

boolean $flag

values_parsing()

values_parsing(mixed  $value) : object

Values Parsing

Parameters

mixed $value

Returns

object

send_request()

send_request() : boolean

Sends XML-RPC Request

Returns

boolean

display_error()

display_error() : string

Returns Error

Returns

string

display_response()

display_response() : string

Returns Remote Server Response

Returns

string

send_error_message()

send_error_message(integer  $number, string  $message) : object

Sends an Error Message for Server Request

Parameters

integer $number
string $message

Returns

object

send_response()

send_response(array  $response) : object

Send Response for Server Request

Parameters

array $response

Returns

object

createPayload()

createPayload() : void

Create Payload to Send

parseResponse()

parseResponse(  $fp) : object

Parse External XML-RPC Server's Response

Parameters

$fp

Returns

object

open_tag()

open_tag(  $the_parser,   $name) : void

Start Element Handler

Parameters

$the_parser
$name

closing_tag()

closing_tag(  $the_parser,   $name) : void

End Element Handler

Parameters

$the_parser
$name

character_data()

character_data(  $the_parser,   $data) : void

Parse character data

Parameters

$the_parser
$data

addParam()

addParam(  $par) : void

Add parameter

Parameters

$par

output_parameters()

output_parameters(array  $array = array()) : array

Output parameters

Parameters

array $array

Returns

array

decode_message()

decode_message(  $param) : mixed

Decode message

Parameters

$param

Returns

mixed