$response = Horde_Rpc::request('xmlrpc',
'http://localhost:80/horde/rpc.php',
'contacts.search',
$transport_client,
array(array('jan'), array('localsql'),
array('name', 'email')));
Afficher le fichier
Open project: horde/horde
Class Usage Examples
Свойство | Type | Description | |
---|---|---|---|
$_logger | Horde_Log_Logger | Logging | |
$_params | array | All driver-specific parameters. | |
$_request | Horde_Controller_Request_Http | .. | |
$_requestMissingAuthorization | boolean | Whether we should exit if auth fails instead of requesting authorization credentials. | |
$_requireAuthorization | boolean | Do we need an authenticated user? |
Méthode | Description | |
---|---|---|
__construct ( Horde_Controller_Request_Http $request, array $params = [] ) | Constructor. | |
authorize ( ) : boolean | Check authentication. Different backends may handle authentication in different ways. The base class implementation checks for HTTP Authentication against the Horde auth setup. | |
factory ( mixed $driver, $request, array $params = null ) : Horde_Rpc | Attempts to return a concrete RPC server instance based on $driver. | |
getInput ( ) : mixed | Get the request body input. Different RPC backends can override this to return an open stream to php://stdin, for instance - whatever is easiest to handle in the getResponse() method. | |
getResponse ( $request ) : string | Sends an RPC request to the server implementation and returns the result. | |
getResponseContentType ( ) : string | Returns the Content-Type of the response. | |
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. | |
sendOutput ( string $output ) : void | Send the output back to the client |
public __construct ( Horde_Controller_Request_Http $request, array $params = [] ) | ||
$request | Horde_Controller_Request_Http | The request object. |
$params | array | A hash containing any additional configuration or connection parameters a subclass might need. |
public static factory ( mixed $driver, $request, array $params = null ) : Horde_Rpc | ||
$driver | mixed | The type of concrete Horde_Rpc subclass to return. |
$params | array | A hash containing any additional configuration or connection parameters a subclass might need. |
Résultat | Horde_Rpc | The newly created concrete Horde_Rpc server instance, or an exception if there is an error. |
public getResponse ( $request ) : string | ||
Résultat | string | The response from the server. |
public getResponseContentType ( ) : string | ||
Résultat | string | The MIME Content-Type of the RPC response. |
public static request ( string $driver, string | Horde_Url $url, string $method, mixed $client, array $params = null ) : mixed | ||
$driver | string | The protocol driver to use. Currently 'soap', 'xmlrpc' and 'jsonrpc' are available. |
$url | string | Horde_Url | The path to the RPC server on the called host. |
$method | string | The method to call. |
$client | mixed | An appropriate request client for the type of request. (Horde_Http_Request, SoapClient etc..) |
$params | array | A hash containing any necessary parameters for the method call. |
Résultat | mixed | The returned result from the method |
public sendOutput ( string $output ) : void | ||
$output | string | The output to send back to the client. Can be overridden in classes if needed. |
Résultat | void |
protected Horde_Log_Logger $_logger | ||
Résultat | Horde_Log_Logger |
protected array $_params | ||
Résultat | array |
protected Horde_Controller_Request_Http $_request | ||
Résultat | Horde_Controller_Request_Http |
protected bool $_requestMissingAuthorization | ||
Résultat | boolean |
protected bool $_requireAuthorization | ||
Résultat | boolean |