wCMF
3.6
|
Public Member Functions | |
__construct ($serverCli, $user) | |
call ($request) | |
Public Attributes | |
const | SIDS_SESSION_VARNAME = 'RPCClient.sids' |
Protected Member Functions | |
doRemoteCall ($request, $isLogin) | |
doLogin () | |
setSessionId ($sessionId) | |
getSessionId () | |
handleError ($response) | |
Private Attributes | |
$_serverCli = null | |
$_php = null | |
$_user = null | |
RPCClient is used to do calls to other wCMF instances on the same maschine.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
$Id$
Definition at line 31 of file class.RPCClient.php.
RPCClient::__construct | ( | $serverCli, | |
$user | |||
) |
Constructor
serverCli | The command line interface of the other server instance. |
user | The remote user instance. |
Definition at line 45 of file class.RPCClient.php.
References InifileParser\getInstance(), SessionData\getInstance(), and WCMFException\throwEx().
RPCClient::call | ( | $request | ) |
Do a call to the remote server.
request | A Request instance |
Definition at line 75 of file class.RPCClient.php.
References doRemoteCall().
|
protected |
Do a remote call.
request | The Request instance |
isLogin | True/False wether this request is a login request or not |
Definition at line 86 of file class.RPCClient.php.
References Log\debug(), JSONUtil\decode(), Formatter\deserialize(), doLogin(), getSessionId(), handleError(), Log\isDebugEnabled(), and MSG_FORMAT_JSON.
Referenced by call(), and doLogin().
|
protected |
Do the login request. If the request is successful, the session id will be set.
Definition at line 146 of file class.RPCClient.php.
References doRemoteCall(), setSessionId(), and WCMFException\throwEx().
Referenced by doRemoteCall().
|
protected |
Store the session id for our server in the local session
Definition at line 176 of file class.RPCClient.php.
References $_serverCli, and SessionData\getInstance().
Referenced by doLogin().
|
protected |
Get the session id for our server from the local session
Definition at line 187 of file class.RPCClient.php.
References $_serverCli, and SessionData\getInstance().
Referenced by doRemoteCall().
|
protected |
Error handling method
response | The Response instance |
Definition at line 201 of file class.RPCClient.php.
References Log\error(), and WCMFException\throwEx().
Referenced by doRemoteCall().
const RPCClient::SIDS_SESSION_VARNAME = 'RPCClient.sids' |
Definition at line 34 of file class.RPCClient.php.
|
private |
Definition at line 36 of file class.RPCClient.php.
Referenced by getSessionId(), and setSessionId().
|
private |
Definition at line 37 of file class.RPCClient.php.
|
private |
Definition at line 38 of file class.RPCClient.php.