\jsonRPCClient

The object of this class are generic jsonRPC 1.0 clients http://json-rpc.org/wiki/specification

Summary

Methods
Properties
Constants
__construct()
setRPCNotification()
__call()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$debug
$url
$id
$notification
N/A

Properties

$debug

$debug : boolean

Debug state

Type

boolean

$url

$url : string

The server URL

Type

string

$id

$id : integer

The request id

Type

integer

$notification

$notification : boolean

If true, notifications are performed instead of requests

Type

boolean

Methods

__construct()

__construct(string  $url, boolean  $debug = false) 

Takes the connection parameters

Parameters

string $url
boolean $debug

setRPCNotification()

setRPCNotification(boolean  $notification) 

Sets the notification state of the object. In this state, notifications are performed, instead of requests.

Parameters

boolean $notification

__call()

__call(string  $method, array  $params) : array

Performs a jsonRCP request and gets the results as an array

Parameters

string $method
array $params

Returns

array