RemotingServer Class Reference

Detailed Description

RemotingServer is used to communicate with other wCMF instances.

The url and login credentials of a remote instance are configured using the configuration sections RemoteServer and RemoteUser. Each remote instance is identified by a unique server key. The following example configures ServerKeyA over http and ServerKeyB over command line:

[remoteserver]
ServerKeyA = http://localhost/wcmfA
ServerKeyB = /path/to/wcmfB/main.php
[remoteuser]
ServerKeyA = {loginA, passwordA}
ServerKeyB = {loginB, passwordB}
[system]
php = /path/to/php-cli
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 40 of file RemotingServer.php.

Public Member Functions

 doCall ($serverKey, $request)
 

Member Function Documentation

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 51 of file RemotingServer.php.