category Zend
package Zend_Json
subpackage Server

 Methods

Cast to string (JSON)

__toString() : string
Inherited

inherited_from \Zend\Json\Server\Response::__toString()

Returns

string

Retrieve args

getArgs() : mixed
Inherited

inherited_from \Zend\Json\Server\Response::getArgs()

Returns

mixed

Get response error

getError() : null | \Zend\Json\Server\Error
Inherited

inherited_from \Zend\Json\Server\Response::getError()

Returns

Get request ID

getId() : mixed
Inherited

inherited_from \Zend\Json\Server\Response::getId()

Returns

mixed

Get result

getResult() : mixed
Inherited

inherited_from \Zend\Json\Server\Response::getResult()

Returns

mixed

Retrieve service map

getServiceMap() : \Zend\Json\Server\Smd | null
Inherited

inherited_from \Zend\Json\Server\Response::getServiceMap()

Returns

Retrieve JSON-RPC version

getVersion() : string
Inherited

inherited_from \Zend\Json\Server\Response::getVersion()

Returns

string

Is the response an error?

isError() : bool
Inherited

inherited_from \Zend\Json\Server\Response::isError()

Returns

bool

Set response state based on JSON

loadJson(string $json) : void
Inherited

inherited_from \Zend\Json\Server\Response::loadJson()

Parameters

$json

string

Send headers

sendHeaders() : void

If headers are already sent, do nothing. If null ID, send HTTP 204 header. Otherwise, send content type header based on content type of service map.

Set args

setArgs(mixed $args) : \Zend\Json\Server\self
Inherited

inherited_from \Zend\Json\Server\Response::setArgs()

Parameters

$args

mixed

Returns

\Zend\Json\Server\self

Set result error

setError(\Zend\Json\Server\Error $error) : \Zend\Json\Server\Response
Inherited

inherited_from \Zend\Json\Server\Response::setError()

Parameters

Returns

Set request ID

setId(mixed $name) : \Zend\Json\Server\Response
Inherited

inherited_from \Zend\Json\Server\Response::setId()

Parameters

$name

mixed

Returns

Set response state

setOptions(array $options) : \Zend\Json\Server\Response
Inherited

inherited_from \Zend\Json\Server\Response::setOptions()

Parameters

$options

array

Returns

Set result

setResult(mixed $value) : \Zend\Json\Server\Response
Inherited

inherited_from \Zend\Json\Server\Response::setResult()

Parameters

$value

mixed

Returns

Set service map object

setServiceMap(\Zend\Json\Server\Smd $serviceMap) : \Zend\Json\Server\Response
Inherited

inherited_from \Zend\Json\Server\Response::setServiceMap()

Parameters

$serviceMap

\Zend\Json\Server\Smd

Returns

Set JSON-RPC version

setVersion(string $version) : \Zend\Json\Server\Response
Inherited

inherited_from \Zend\Json\Server\Response::setVersion()

Parameters

$version

string

Returns

Emit JSON

toJson() : string

Send appropriate HTTP headers. If no Id, then return an empty string.

Returns

string

 Properties

 

$args

$args : \Zend\Json\Server\$args
Inherited

inherited_from \Zend\Json\Server\Response::$$args
 

Response error

$error : null | \Zend\Json\Server\Error
Inherited

inherited_from \Zend\Json\Server\Response::$$error
 

Request ID

$id : mixed
Inherited

inherited_from \Zend\Json\Server\Response::$$id
 

Result

$result : mixed
Inherited

inherited_from \Zend\Json\Server\Response::$$result
 

Service map

$serviceMap : \Zend\Json\Server\Smd
Inherited

inherited_from \Zend\Json\Server\Response::$$serviceMap
 

JSON-RPC version

$version : string
Inherited

inherited_from \Zend\Json\Server\Response::$$version