Server
extends Server
in package
uses
EncoderAware, SerializerAware
Tags
Table of Contents
Properties
- $debug : mixed
- $encoder : mixed
- $functions_parameters_type : mixed
- $phpvals_encoding_options : array<string|int, mixed>
- $responseClass : mixed
- $serializer : mixed
Methods
- getCapabilities() : array<string|int, array<string|int, mixed>>
- getEncoder() : mixed
- getParser() : Parser
- Reimplemented to make us use the correct parser type.
- getSerializer() : mixed
- methodNameCallback() : void
- serializeDebug() : mixed
- setEncoder() : mixed
- setSerializer() : mixed
- execute() : Response
- Note: syntax differs from overridden method, by adding an ID param
- xml_header() : string
- No xml header generated by the server, since we are sending json.
Properties
$debug
protected
mixed
$debug
= 0
$encoder
protected
static mixed
$encoder
$functions_parameters_type
protected
mixed
$functions_parameters_type
= \PhpXmlRpc\JsonRpc\Helper\Parser::RETURN_JSONRPCVALS
$phpvals_encoding_options
protected
array<string|int, mixed>
$phpvals_encoding_options
= array()
Option used for fine-tuning the encoding the php values returned from functions registered in the dispatch map when the functions_parameters_type member is set to 'phpvals'.
Tags
$responseClass
protected
static mixed
$responseClass
= '\PhpXmlRpc\JsonRpc\Response'
$serializer
protected
static mixed
$serializer
Methods
getCapabilities()
public
getCapabilities() : array<string|int, array<string|int, mixed>>
Tags
Return values
array<string|int, array<string|int, mixed>>getEncoder()
public
getEncoder() : mixed
getParser()
Reimplemented to make us use the correct parser type.
public
getParser() : Parser
Return values
ParsergetSerializer()
public
getSerializer() : mixed
methodNameCallback()
public
methodNameCallback(string $methodName, Parser $xmlParser[, null $parser = null ]) : void
Parameters
- $methodName : string
- $xmlParser : Parser
- $parser : null = null
Tags
serializeDebug()
public
serializeDebug([mixed $charsetEncoding = '' ]) : mixed
Parameters
- $charsetEncoding : mixed = ''
Tags
setEncoder()
public
static setEncoder(mixed $encoder) : mixed
Parameters
- $encoder : mixed
setSerializer()
public
static setSerializer(mixed $serializer) : mixed
Parameters
- $serializer : mixed
execute()
Note: syntax differs from overridden method, by adding an ID param
protected
execute(Request|string $req[, array<string|int, mixed> $params = null ][, array<string|int, string> $paramTypes = null ][, mixed $msgID = null ]) : Response
Parameters
- $req : Request|string
- $params : array<string|int, mixed> = null
- $paramTypes : array<string|int, string> = null
- $msgID : mixed = null
Tags
Return values
Responsexml_header()
No xml header generated by the server, since we are sending json.
protected
xml_header([string $charsetEncoding = '' ]) : string
this method was moved to the Response class
Parameters
- $charsetEncoding : string = ''