model/modx/jsonrpc/modjsonrpcresponse.class.php
- package
- modx
- Classes
- modJSONRPCResponse
Description
\modJSONRPCResponse
- Extends from
- \modXMLRPCResponse
- package
- modx
- subpackage
- jsonrpc
- Methods
- getServer
- outputContent
Description
Extends modXMLRPCResponse to support servicing JSON-RPC client requests.
Includes functions to manipluate header data, such as status codes, as well as manipulating the response body.
Methods
getServer
getServer(
bool $execute
=
false
)
:
bool
Load the JSON-RPC server
Arguments
- $execute
- bool
Execute the server process
Output
- bool
- True if the server was successfully loaded
Details
- visibility
- public
- final
- false
- static
- false
outputContent
outputContent(
array $options
=
array
)
:
void
Output the content of this response
{@inheritdoc}
Arguments
- $options
- array
An array of options for the output
Details
- visibility
- public
- final
- false
- static
- false