$_params
$_params : array
All driver-specific parameters.
Copyright 2009-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
__construct(\Horde_Controller_Request_Http $request, array $params = array())
Constructor.
\Horde_Controller_Request_Http | $request | The request object. |
array | $params | A hash containing configuration parameters:
|
getInput() : mixed
Horde_ActiveSync will read the input stream directly, do not access it here.
The base class implementation looks for $HTTP_RAW_POST_DATA and returns that if it's available; otherwise, it returns the contents of php://stdin.
The input - a string (default), a filehandle, etc.
request(string $driver, string|\Horde_Url $url, string $method, mixed $client, array $params = null) : mixed
Builds an RPC request and sends it to the RPC server.
This statically called method is actually the RPC client.
string | $driver | The protocol driver to use. Currently 'soap', 'xmlrpc' and 'jsonrpc' are available. |
string|\Horde_Url | $url | The path to the RPC server on the called host. |
string | $method | The method to call. |
mixed | $client | An appropriate request client for the type of request. (Horde_Http_Request, SoapClient etc..) |
array | $params | A hash containing any necessary parameters for the method call. |
The returned result from the method
factory(mixed $driver, $request, array $params = null) : \Horde_Rpc
Attempts to return a concrete RPC server instance based on $driver.
mixed | $driver | The type of concrete Horde_Rpc subclass to return. |
$request | ||
array | $params | A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Horde_Rpc server instance, or an exception if there is an error.