Json/Server/Response/Http.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 license@zend.com 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

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

Methods

methodpublic__toString() : string
inherited

Cast to string (JSON)

Inherited from: \Zend_Json_Server_Response::__toString()
Returns
TypeDescription
string
methodpublicgetArgs() : mixed
inherited

Retrieve args

Inherited from: \Zend_Json_Server_Response::getArgs()
Returns
TypeDescription
mixed
methodpublicgetError() : null | \Zend_Json_Server_Error
inherited

Get response error

Inherited from: \Zend_Json_Server_Response::getError()
Returns
TypeDescription
null | \Zend_Json_Server_Error
methodpublicgetId() : mixed
inherited

Get request ID

Inherited from: \Zend_Json_Server_Response::getId()
Returns
TypeDescription
mixed
methodpublicgetResult() : mixed
inherited

Get result

Inherited from: \Zend_Json_Server_Response::getResult()
Returns
TypeDescription
mixed
methodpublicgetServiceMap() : \Zend_Json_Server_Smd | null
inherited

Retrieve service map

Inherited from: \Zend_Json_Server_Response::getServiceMap()
Returns
TypeDescription
\Zend_Json_Server_Smd | null
methodpublicgetVersion() : string
inherited

Retrieve JSON-RPC version

Inherited from: \Zend_Json_Server_Response::getVersion()
Returns
TypeDescription
string
methodpublicisError() : bool
inherited

Is the response an error?

Inherited from: \Zend_Json_Server_Response::isError()
Returns
TypeDescription
bool
methodpublicsendHeaders() : 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.

methodpublicsetArgs(mixed $args) : \Zend_Json_Server_Response_Http
inherited

Set args

Inherited from: \Zend_Json_Server_Response::setArgs()
Parameters
NameTypeDescription
$argsmixed
Returns
TypeDescription
\Zend_Json_Server_Response_Http
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
inherited

Set result error

Inherited from: \Zend_Json_Server_Response::setError()
Parameters
NameTypeDescription
$error\Zend_Json_Server_Error
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublicsetId(mixed $name) : \Zend_Json_Server_Response
inherited

Set request ID

Inherited from: \Zend_Json_Server_Response::setId()
Parameters
NameTypeDescription
$namemixed
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublicsetResult(mixed $value) : \Zend_Json_Server_Response
inherited

Set result

Inherited from: \Zend_Json_Server_Response::setResult()
Parameters
NameTypeDescription
$valuemixed
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublicsetServiceMap(\Zend_Json_Server_Smd $serviceMap) : \Zend_Json_Server_Response
inherited

Set service map object

Inherited from: \Zend_Json_Server_Response::setServiceMap()
Parameters
NameTypeDescription
$serviceMap\Zend_Json_Server_Smd
Returns
TypeDescription
\Zend_Json_Server_Response
methodpublicsetVersion(string $version) : \Zend_Json_Server_Response
inherited

Set JSON-RPC version

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

Emit JSON

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

Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.0.0a12.