Class TRpcProtocol

Description

TRpcProtocol class

Located in /Web/Services/TRpcService.php (line 276)


	
			
Direct descendents
Class Description
TJsonRpcProtocol TJsonRpcProtocol class
TXmlRpcProtocol TXmlRpcProtocol class
Variable Summary
array $rpcMethods
Method Summary
void addMethod (string $methodName, array $handlerDetails)
mixed callApiMethod (string $methodName, array $parameters)
void callMethod ( $requestPayload)
void createErrorResponse (TRpcException $exception)
void createResponseHeaders ( $response)
void decode ( $data)
void encode ( $data)
Variables
array $rpcMethods = array() (line 281)
  • var: containis the mapping from RPC method names to the actual handlers
  • access: protected
Methods
addMethod (line 298)

Registers a new RPC method and handler details

  • access: public
void addMethod (string $methodName, array $handlerDetails)
  • string $methodName
  • array $handlerDetails: containing the callback handler

Redefined in descendants as:
callApiMethod (line 309)

Calls the callback handler for the given method

  • return: whatever the callback handler returns
  • access: public
mixed callApiMethod (string $methodName, array $parameters)
  • string $methodName: of the RPC
  • array $parameters: for the callback handler as provided by the client
callMethod (line 285)
  • abstract:
  • access: public
void callMethod ( $requestPayload)
  • $requestPayload

Redefined in descendants as:
createErrorResponse (line 286)
  • abstract:
  • access: public
void createErrorResponse (TRpcException $exception)

Redefined in descendants as:
createResponseHeaders (line 287)
  • abstract:
  • access: public
void createResponseHeaders ( $response)
  • $response

Redefined in descendants as:
decode (line 289)
  • abstract:
  • access: public
void decode ( $data)
  • $data

Redefined in descendants as:
encode (line 288)
  • abstract:
  • access: public
void encode ( $data)
  • $data

Redefined in descendants as:

Documentation generated on Mon, 25 Jun 2012 14:39:07 +0200 by phpDocumentor 1.4.3