Json/Server/Response.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Json
- Subpackage
- Server
- Version
- $Id: Response.php 24807 2012-05-15 12:10:42Z adamlundrigan $
\Zend_Json_Server_Response
Package: Zend\Json\Server
- Children
- \Zend_Json_Server_Response_Http
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods

getError() : null | \Zend_Json_Server_ErrorGet response error
Returns
| Type | Description |
|---|---|
| null | \Zend_Json_Server_Error |

getServiceMap() : \Zend_Json_Server_Smd | nullRetrieve service map
Returns
| Type | Description |
|---|---|
| \Zend_Json_Server_Smd | null |

setArgs(mixed $args) : \Zend_Json_Server_ResponseSet args
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $args | mixed |
| Type | Description |
|---|---|
| \Zend_Json_Server_Response |
- Fluent
- This method is part of a fluent interface and will return the same instance

setError(\Zend_Json_Server_Error $error) : \Zend_Json_Server_ResponseSet result error
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $error | \Zend_Json_Server_Error |
| Type | Description |
|---|---|
| \Zend_Json_Server_Response |

setId(mixed $name) : \Zend_Json_Server_ResponseSet request ID
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | mixed |
| Type | Description |
|---|---|
| \Zend_Json_Server_Response |

setResult(mixed $value) : \Zend_Json_Server_ResponseSet result
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $value | mixed |
| Type | Description |
|---|---|
| \Zend_Json_Server_Response |

setServiceMap(\Zend_Json_Server_Smd $serviceMap) : \Zend_Json_Server_ResponseSet service map object
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $serviceMap | \Zend_Json_Server_Smd |
| Type | Description |
|---|---|
| \Zend_Json_Server_Response |

setVersion(string $version) : \Zend_Json_Server_ResponseSet JSON-RPC version
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $version | string |
| Type | Description |
|---|---|
| \Zend_Json_Server_Response |