LimeSurvey API - Master branch

jsonRPCClient
in package

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

Tags
author

sergio jsonrpcphp@inservibile.org

Table of Contents

Properties

$debug  : bool
Debug state
$id  : int
The request id
$notification  : bool
If true, notifications are performed instead of requests
$url  : string
The server URL

Methods

__call()  : array<string|int, mixed>
Performs a jsonRCP request and gets the results as an array
__construct()  : mixed
Takes the connection parameters
call()  : mixed
setRPCNotification()  : mixed
Sets the notification state of the object. In this state, notifications are performed, instead of requests.

Properties

$notification

If true, notifications are performed instead of requests

private bool $notification = \false

Methods

__call()

Performs a jsonRCP request and gets the results as an array

public __call(string $method, array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
$method : string
$params : array<string|int, mixed>
Return values
array<string|int, mixed>

__construct()

Takes the connection parameters

public __construct(string $url[, bool $debug = false ]) : mixed
Parameters
$url : string
$debug : bool = false

call()

public call(mixed $method, mixed $params) : mixed
Parameters
$method : mixed
$params : mixed

setRPCNotification()

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

public setRPCNotification(bool $notification) : mixed
Parameters
$notification : bool

        
On this page

Search results