PHP 클래스 Prado\Util\TRpcClient
Note: When using setIsNotification(true), *every* following request is also
considered to be a notification until you use setIsNotification(false).
Usage:
First, you can use the factory:
$_rpcClient = TRpcClient::create('xml', 'http://host/server');
$_result = $_rpcClient->remoteMethodName($param, $otherParam);
or as oneliner:
$_result = TRpcClient::create('json', 'http://host/server')->remoteMethod($param, ...);
Second, you can also use the specific implementation directly:
$_rpcClient = new TXmlRpcClient('http://host/server');
$_result = $_rpcClient->remoteMethod($param, ...);
or as oneliner:
$_result = TXmlRpcClient('http://host/server')->hello();
파일 보기
프로젝트 열기: pradosoft/prado
공개 메소드들
보호된 메소드들
메소드 상세
public __construct ( $serverUrl, $isNotification = false ) |
Creates an instance of the requested RPC client type
public static create ( $type, $serverUrl, $isNotification = false ) : TRpcClient |
리턴 |
TRpcClient |
instance |
createStreamContext()
보호된 메소드
Creates a stream context resource
getIsNotification()
공개 메소드
setIsNotification()
공개 메소드