Class \Prado\Util\TJsonRpcClient
TJsonRpcClient class
Note: When using setIsNotification(true), every following request is also considered to be a notification until you use setIsNotification(false).
Usage:
$_rpcClient = new TJsonRpcClient('http://host/server'); $_result = $_rpcClient->remoteMethod($param, $otherParam); // or $_result = TJsonRpcClient::create('http://host/server')->remoteMethod($param, $otherParam);
Class hierarchy
Author: Robin J. Rogge <rrogge@bigpoint.net>Since: 3.2
public
|
|
public
static
|
create(mixed $type, string $serverUrl[, bool $isNotification = false ]) : TRpcClient
Creates an instance of TJsonRpcClient
|
public
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |