JSONRPC 1.0.0-beta3

Serializer
in package

Tags
todo

implement a CharsetEncoderAware trait (as soon as there is a 2nd user of Charset)

Table of Contents

Properties

$defaultJsonrpcVersion  : mixed
$charsetEncoder  : mixed

Methods

getCharsetEncoder()  : mixed
serializeRequest()  : string
serializeResponse()  : string
Serialize a Response as json.
serializeValue()  : string
Serialize a json-rpc Value (or xml-rpc Value) as json.
setCharsetEncoder()  : mixed

Properties

$defaultJsonrpcVersion

public static mixed $defaultJsonrpcVersion = \PhpXmlRpc\JsonRpc\PhpJsonRpc::VERSION_2_0

$charsetEncoder

protected static mixed $charsetEncoder

Methods

getCharsetEncoder()

public getCharsetEncoder() : mixed

serializeRequest()

public serializeRequest(Request $req[, mixed $id = null ][, string $charsetEncoding = '' ]) : string
Parameters
$req : Request
$id : mixed = null
$charsetEncoding : string = ''
Return values
string

serializeResponse()

Serialize a Response as json.

public serializeResponse(Response $resp[, mixed $id = null ][, string $charsetEncoding = '' ]) : string

Moved outside the corresponding class to ease multi-serialization of xmlrpc response objects.

Parameters
$resp : Response
$id : mixed = null
$charsetEncoding : string = ''
Tags
throws
Exception
Return values
string

serializeValue()

Serialize a json-rpc Value (or xml-rpc Value) as json.

public serializeValue(Value $value[, string $charsetEncoding = '' ]) : string

Moved outside the corresponding class to ease multi-serialization of xml-rpc value objects

Parameters
$value : Value
$charsetEncoding : string = ''
Return values
string

setCharsetEncoder()

public setCharsetEncoder(mixed $charsetEncoder) : mixed
Parameters
$charsetEncoder : mixed

        
On this page

Search results