Class jJsonRpc

Description

object which encode and decode a jsonrpc request and response

Located in /utils/jJsonRpc.class.php (line 19)


	
			
Method Summary
static mixed decodeRequest (string $content)
static mixed decodeResponse (string $content)
static string encodeFaultResponse (int $code, string $message, [ $id = 1])
static string encodeRequest (string $methodname, array $params, [ $id = 1])
static string encodeResponse (array $params, [ $id = 1])
Methods
static decodeRequest (line 28)

decode a request of json xmlrpc

  • access: public
static mixed decodeRequest (string $content)
  • string $content
static decodeResponse (line 49)

decode a jsonrpc response

  • return: decoded content
  • access: public
static mixed decodeResponse (string $content)
  • string $content
static encodeFaultResponse (line 69)

encode a jsonrpc error response

  • return: encoded response
  • access: public
static string encodeFaultResponse (int $code, string $message, [ $id = 1])
  • int $code: code error
  • string $message: error message
  • $id
static encodeRequest (line 40)

create a request content for a jsonrpc call

  • return: jsonrcp request content
  • access: public
static string encodeRequest (string $methodname, array $params, [ $id = 1])
  • string $methodname: method of the jsonrcp web service
  • array $params: parameters for the methods
  • $id
static encodeResponse (line 59)

encode a jsonrpc response

  • return: encoded response
  • access: public
static string encodeResponse (array $params, [ $id = 1])
  • array $params: returned value
  • $id

Documentation generated on Mon, 26 Oct 2015 21:54:59 +0100 by phpDocumentor 1.4.3