Class TJsonRpcProtocol

Description

TJsonRpcProtocol class

Implements the JSON RPC protocol

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

TRpcProtocol
   |
   --TJsonRpcProtocol
Method Summary
string callMethod (string $requestPayload)
string createErrorResponse (TRpcException $exception)
array decode (string $data)
string encode (mixed $data)
Variables

Inherited Variables

Inherited from TRpcProtocol

TRpcProtocol::$rpcMethods
Methods
callMethod (line 337)

Handles the RPC request

  • return: JSON RPC response
  • access: public
string callMethod (string $requestPayload)
  • string $requestPayload

Redefinition of:
TRpcProtocol::callMethod()
createErrorResponse (line 367)

Turns the given exception into an JSON RPC fault

  • return: JSON RPC fault
  • access: public
string createErrorResponse (TRpcException $exception)

Redefinition of:
TRpcProtocol::createErrorResponse()
createResponseHeaders (line 379)

Sets the correct response headers

  • access: public
void createResponseHeaders (THttpResponse $response)

Redefinition of:
TRpcProtocol::createResponseHeaders()
decode (line 390)

Decodes JSON encoded data into PHP data

  • return: PHP data
  • access: public
array decode (string $data)
  • string $data: in JSON format

Redefinition of:
TRpcProtocol::decode()
encode (line 400)

Encodes PHP data into JSON data

  • return: JSON encoded PHP data
  • access: public
string encode (mixed $data)
  • mixed $data: PHP data

Redefinition of:
TRpcProtocol::encode()

Inherited Methods

Inherited From TRpcProtocol

TRpcProtocol::addMethod()
TRpcProtocol::callApiMethod()
TRpcProtocol::callMethod()
TRpcProtocol::createErrorResponse()
TRpcProtocol::createResponseHeaders()
TRpcProtocol::decode()
TRpcProtocol::encode()

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