object which encode and decode a jsonrpc request and response
| package |
jelix |
|---|---|
| subpackage |
utils |
| link |
__construct()
decodeRequest(string $content) : mixed
string
mixed
decodeResponse(string $content) : mixed
string
mixeddecoded content
encodeFaultResponse(integer $code, string $message, $id = 1) : string
integercode error
stringerror message
stringencoded response
encodeRequest(string $methodname, array $params, $id = 1) : string
stringmethod of the jsonrcp web service
arrayparameters for the methods
stringjsonrcp request content
encodeResponse(array $params, $id = 1) : string
arrayreturned value
stringencoded response