PHP Class Horde_Rpc_Xmlrpc, horde

Copyright 2002-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Jan Schneider ([email protected])
Inheritance: extends Horde_Rpc
Mostra file Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$_server resource Resource handler for the XMLRPC server.

Public Methods

Method Description
__construct ( $request, $params = [] ) XMLRPC server constructor
_dispatcher ( string $method, array $params, mixed $data ) : mixed Will be registered as the handler for all available methods and will call the appropriate function through the registry.
getResponse ( $request ) : string Sends an RPC request to the server and returns the result.
request ( string | Horde_Url $url, string $method, Horde_Http_Client $client, array $params = null ) : mixed Builds an XMLRPC request and sends it to the XMLRPC server.

Method Details

__construct() public method

XMLRPC server constructor
public __construct ( $request, $params = [] )

_dispatcher() public method

Will be registered as the handler for all available methods and will call the appropriate function through the registry.
public _dispatcher ( string $method, array $params, mixed $data ) : mixed
$method string The name of the method called by the RPC request.
$params array The passed parameters.
$data mixed Unknown.
return mixed The result of the called registry method.

getResponse() public method

Sends an RPC request to the server and returns the result.
public getResponse ( $request ) : string
return string The XML encoded response from the server.

request() public static method

This statically called method is actually the XMLRPC client.
public static request ( string | Horde_Url $url, string $method, Horde_Http_Client $client, array $params = null ) : mixed
$url string | Horde_Url The path to the XMLRPC server on the called host.
$method string The method to call.
$client Horde_Http_Client The transport client
$params array A hash containing any necessary parameters for the method call.
return mixed The returned result from the method.

Property Details

$_server public_oe property

Resource handler for the XMLRPC server.
public resource $_server
return resource