PHP 클래스 Prado\Web\Services\TXmlRpcProtocol

TXmlRpcProtocol is a class that implements XML-Rpc protocol in {@link TRpcService}. It's basically a wrapper to the xmlrpc_server_* family of php methods.
부터: 3.2
저자: Robin J. Rogge ([email protected])
상속: extends TRpcProtocol
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( ) Constructor
__destruct ( ) Destructor
addMethod ( string $methodName, $methodDetails ) Registers a new RPC method and handler details
callMethod ( string $requestPayload ) : string Handles the RPC request
createErrorResponse ( TRpcException $exception ) : string Turns the given exception into an XML RPC fault
createResponseHeaders ( THttpResponse $response ) Sets the correct response headers
decode ( string $data ) : array Decodes XML encoded data into PHP data
encode ( $data ) : string Encodes PHP data into XML data

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

__destruct() 공개 메소드

Destructor
public __destruct ( )

addMethod() 공개 메소드

Registers a new RPC method and handler details
public addMethod ( string $methodName, $methodDetails )
$methodName string

callMethod() 공개 메소드

Handles the RPC request
public callMethod ( string $requestPayload ) : string
$requestPayload string
리턴 string XML RPC response

createErrorResponse() 공개 메소드

Turns the given exception into an XML RPC fault
public createErrorResponse ( TRpcException $exception ) : string
$exception TRpcException
리턴 string XML RPC fault

createResponseHeaders() 공개 메소드

Sets the correct response headers
public createResponseHeaders ( THttpResponse $response )
$response THttpResponse

decode() 공개 메소드

Decodes XML encoded data into PHP data
public decode ( string $data ) : array
$data string in XML format
리턴 array PHP data

encode() 공개 메소드

Encodes PHP data into XML data
public encode ( $data ) : string
리턴 string XML encoded PHP data