Class jResponseJsonRpc

Description

Response for jsonrpc protocol

Located in /core/response/jResponseJsonrpc.class.php (line 21)

jResponse
   |
   --jResponseJsonRpc
Variable Summary
mixed $response
string $_type
Method Summary
void output ()
void outputErrors ()
Variables
mixed $response = null (line 31)

PHP data you want to return

  • access: public
string $_type = 'jsonrpc' (line 25)
  • access: protected

Redefinition of:
jResponse::$_type

Inherited Variables

Inherited from jResponse

jResponse::$forcedHttpVersion
jResponse::$httpVersion
jResponse::$_httpHeaders
jResponse::$_httpHeadersSent
jResponse::$_httpStatusCode
jResponse::$_httpStatusMsg
Methods
output (line 34)
  • access: public
void output ()

Redefinition of:
jResponse::output()
Send the response in the correct format. If errors or exceptions appears during this method, outputErrors will be called. So the the content should be generated using the output buffer if errors can be appeared during this generation. Be care of http headers.
outputErrors (line 51)
  • access: public
void outputErrors ()

Redefinition of:
jResponse::outputErrors()
Send a response with a generic error message.

Inherited Methods

Inherited From jResponse

jResponse::__construct()
jResponse::addHttpHeader()
jResponse::clearHttpHeaders()
jResponse::getFormatType()
jResponse::getType()
jResponse::output()
jResponse::outputErrors()
jResponse::sendHttpHeaders()
jResponse::setHttpStatus()

Documentation generated on Mon, 19 Sep 2011 14:13:24 +0200 by phpDocumentor 1.4.3