Json/Server/Response.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Json  
Subpackage
Server  
Version
$Id$  

\Zend_Json_Server_Response

Package: Zend_Json\Server
Children
\Zend_Json_Server_Response_Http
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectednull|\Zend_Json_Server_Error $_error
Response error
Details
Type
null | \Zend_Json_Server_Error
>VPropertyprotectedmixed $_id
Request ID
Details
Type
mixed
>VPropertyprotectedmixed $_result
Result
Details
Type
mixed
>VPropertyprotected\Zend_Json_Server_Smd $_serviceMap
Service map
>VPropertyprotectedstring $_version
JSON-RPC version
Details
Type
string

Methods

methodpublic__toString() : string

Cast to string (JSON)

Returns
TypeDescription
string
methodpublicgetArgs() : mixed

Retrieve args

Returns
TypeDescription
mixed
methodpublicgetError() : null | \Zend_Json_Server_Error

Get response error

Returns
TypeDescription
null | \Zend_Json_Server_Error
methodpublicgetId() : mixed

Get request ID

Returns
TypeDescription
mixed
methodpublicgetResult() : mixed

Get result

Returns
TypeDescription
mixed
methodpublicgetServiceMap() : \Zend_Json_Server_Smd | null

Retrieve service map

Returns
TypeDescription
\Zend_Json_Server_Smd | null
methodpublicgetVersion() : string

Retrieve JSON-RPC version

Returns
TypeDescription
string
methodpublicisError() : bool

Is the response an error?

Returns
TypeDescription
bool
methodpublicsetArgs(mixed $args) : \Zend_Json_Server_Response

Set args

Parameters
NameTypeDescription
$argsmixed
Returns
TypeDescription
\Zend_Json_Server_Response
Details
Fluent
This method is part of a fluent interface and will return the same instance  
methodpublicsetError(\Zend_Json_Server_Error $error) : \Zend_Json_Server_Response

Set result error

Parameters
NameTypeDescription
$error\Zend_Json_Server_Error
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublicsetId(mixed $name) : \Zend_Json_Server_Response

Set request ID

Parameters
NameTypeDescription
$namemixed
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublicsetResult(mixed $value) : \Zend_Json_Server_Response

Set result

Parameters
NameTypeDescription
$valuemixed
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublicsetServiceMap(\Zend_Json_Server_Smd $serviceMap) : \Zend_Json_Server_Response

Set service map object

Parameters
NameTypeDescription
$serviceMap\Zend_Json_Server_Smd
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublicsetVersion(string $version) : \Zend_Json_Server_Response

Set JSON-RPC version

Parameters
NameTypeDescription
$versionstring
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublictoJson() : string

Cast to JSON

Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.2.0 .