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-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
Methods
getError() : null | \Zend_Json_Server_Error
Get response error
Returns
Type | Description |
---|---|
null | \Zend_Json_Server_Error |
getServiceMap() : \Zend_Json_Server_Smd | null
Retrieve service map
Returns
Type | Description |
---|---|
\Zend_Json_Server_Smd | null |
setArgs(mixed $args) : \Zend_Json_Server_Response
Set 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_Response
Set result error
Parameters
Returns
Name | Type | Description |
---|---|---|
$error | \Zend_Json_Server_Error |
Type | Description |
---|---|
\Zend_Json_Server_Response |
setId(mixed $name) : \Zend_Json_Server_Response
Set request ID
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | mixed |
Type | Description |
---|---|
\Zend_Json_Server_Response |
setResult(mixed $value) : \Zend_Json_Server_Response
Set result
Parameters
Returns
Name | Type | Description |
---|---|---|
$value | mixed |
Type | Description |
---|---|
\Zend_Json_Server_Response |
setServiceMap(\Zend_Json_Server_Smd $serviceMap) : \Zend_Json_Server_Response
Set 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_Response
Set JSON-RPC version
Parameters
Returns
Name | Type | Description |
---|---|---|
$version | string |
Type | Description |
---|---|
\Zend_Json_Server_Response |