\BaseJsonRpcClient
Base JSON-RPC 2.0 Client
- Author: Sergeyfast
Synopsis
class BaseJsonRpcClient
{
- // members
- public bool $UseObjectsInResults = false;
- public array $CurlOptions = ;
- private integer $id = 1;
- private bool $isBatchCall = false;
- private array $batchCalls = ;
- private array $batchNotifications = ;
- // methods
- public BaseJsonRpcClient __construct()
- protected int getRequestId()
- public bool BeginBatch()
- public void CommitBatch()
- public bool RollbackBatch()
- protected mixed call()
- public BaseJsonRpcCall __call()
- protected mixed processCalls()
Members
private
- $batchCalls
—
array
Batch Calls - $batchNotifications
—
array
Batch Notifications - $id
—
int
Current Request id - $isBatchCall
—
bool
Is Batch Call Flag
public
- $CurlOptions
—
array
Curl Options - $UseObjectsInResults
—
bool
Use Objects in Result
Methods
protected
- call() — Process Call
- getRequestId() — Get Next Request Id
- processCalls() — Process Calls
public
- __construct() — Create New JsonRpc client
- BeginBatch() — Begin Batch Call
- CommitBatch() — Commit Batch
- RollbackBatch() — Rollback Calls
- __call() — Process Magic Call