PHP Класс Prado\Util\TJsonRpcClient

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);
С версии: 3.2
Автор: Robin J. Rogge ([email protected])
Наследование: extends TRpcClient
Показать файл Открыть проект

Открытые методы

Метод Описание
__call ( $method, $parameters ) : mixed
create ( $type, $serverUrl, $isNotification = false ) Creates an instance of TJsonRpcClient
encodeRequest ( $method, $parameters )

Описание методов

__call() публичный Метод

public __call ( $method, $parameters ) : mixed
Результат mixed RPC request result

create() публичный статический Метод

Creates an instance of TJsonRpcClient
public static create ( $type, $serverUrl, $isNotification = false )

encodeRequest() публичный Метод

public encodeRequest ( $method, $parameters )