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
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_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