wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
RemotingFacade Class Reference

Public Member Functions

getInstance ()
 
 doCall ($serverKey, $request)
 

Private Member Functions

 getClient ($serverKey)
 
 getRemoteUser ($serverKey)
 

Private Attributes

 $_clients = array()
 
 $_users = array()
 

Detailed Description

RemotingFacade is used to communicate with other wCMF instances.

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$

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 33 of file class.RemotingFacade.php.

Member Function Documentation

& RemotingFacade::getInstance ( )

Get the singleton instance.

Returns
A reference to a RemotingFacade instance

Definition at line 42 of file class.RemotingFacade.php.

Referenced by RemoteCapablePersistenceFacadeImpl\loadRemoteObject().

RemotingFacade::doCall (   $serverKey,
  $request 
)

Send a request to the server identified by serverKey.

Parameters
serverKeyAn entry in the configuration section 'remoteserver'
requestA Request instance
Returns
A Response instance

Definition at line 57 of file class.RemotingFacade.php.

References getClient().

+ Here is the call graph for this function:

RemotingFacade::getClient (   $serverKey)
private

Get a client instance for a given server key

Parameters
serverKeyAn entry in the configuration section 'remoteserver'
Returns
A client instance or null

Definition at line 72 of file class.RemotingFacade.php.

References InifileParser\getInstance(), getRemoteUser(), and WCMFException\throwEx().

Referenced by doCall().

+ Here is the call graph for this function:

RemotingFacade::getRemoteUser (   $serverKey)
private

Get the remote user name for a given server key

Parameters
serverKeyAn entry in the configuration section 'remoteuser'
Returns
A user instance

Definition at line 105 of file class.RemotingFacade.php.

References ObjectFactory\getInstance(), InifileParser\getInstance(), and WCMFException\throwEx().

Referenced by getClient().

+ Here is the call graph for this function:

Member Data Documentation

RemotingFacade::$_clients = array()
private

Definition at line 35 of file class.RemotingFacade.php.

RemotingFacade::$_users = array()
private

Definition at line 36 of file class.RemotingFacade.php.


The documentation for this class was generated from the following file: