Class 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);
- TComponent
-
TApplicationComponent
-
TRpcClient
-
TJsonRpcClient
Package: System\Util
Copyright: 2010 Bigpoint GmbH
License: http://www.pradosoft.com/license/
Author: Robin J. Rogge <rrogge@bigpoint.net>
Version: $Id$
Since: 3.2
Located at Util/TRpcClient.php
Copyright: 2010 Bigpoint GmbH
License: http://www.pradosoft.com/license/
Author: Robin J. Rogge <rrogge@bigpoint.net>
Version: $Id$
Since: 3.2
Located at Util/TRpcClient.php
public
mixed
|
|
public
|
|
public static
|
#
create( string $type, boolean $serverUrl, mixed $isNotification = false )
Creates an instance of TJsonRpcClient |
__construct(),
createStreamContext(),
getIsNotification(),
getServerUrl(),
performRequest(),
setIsNotification(),
setServerUrl()
|
getApplication(),
getRequest(),
getResponse(),
getService(),
getSession(),
getUser(),
publishAsset(),
publishFilePath()
|
GLOBAL_RAISE_EVENT_LISTENER
|