Json/Server/Response/Http.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
- Version
- $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Json_Server_Response_Http
Package: Zend\Json
- Parent(s)
- \Zend_Json_Server_Response
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


null|\Zend_Json_Server_Error $_error =
Details
- Type
- null | \Zend_Json_Server_Error
- Inherited_from
- \Zend_Json_Server_Response::$$_error


\Zend_Json_Server_Smd $_serviceMap =
Details
- Type
- \Zend_Json_Server_Smd
- Inherited_from
- \Zend_Json_Server_Response::$$_serviceMap
Methods


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


sendHeaders() : void
Send headers
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.


setArgs(mixed $args) : \Zend_Json_Server_Response_Http
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$args | mixed |
Type | Description |
---|---|
\Zend_Json_Server_Response_Http |
- 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
Parameters
Returns
Name | Type | Description |
---|---|---|
$error | \Zend_Json_Server_Error |
Type | Description |
---|---|
\Zend_Json_Server_Response |


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


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


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


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