PHP Класс 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.
Автор: Jan Schneider ([email protected])
Наследование: extends Horde_Rpc
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_server resource Resource handler for the XMLRPC server.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

_dispatcher() публичный Метод

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.
Результат mixed The result of the called registry method.

getResponse() публичный Метод

Sends an RPC request to the server and returns the result.
public getResponse ( $request ) : string
Результат string The XML encoded response from the server.

request() публичный статический Метод

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.
Результат mixed The returned result from the method.

Описание свойств

$_server публичное свойство

Resource handler for the XMLRPC server.
public resource $_server
Результат resource