API Documentation

Json/Server/Response.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Json
subpackage
Server
version
$Id: Response.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Json_Server_Response

Description

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.

Zend_Json_Server_Response

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Json
subpackage
Server
Properties
$_error
$_id
$_result
$_serviceMap
$_version
Methods
setResult
getResult
setError
getError
isError
setId
getId
setVersion
getVersion
toJson
getArgs
setArgs
setServiceMap
getServiceMap
__toString

Description

Properties

$_error

null|Zend_Json_Server_Error $_error = ''

Response error

Details

$_error
null|Zend_Json_Server_Error
visibility
protected
default
final
false
static
false

$_id

mixed $_id = ''

Request ID

Details

$_id
mixed
visibility
protected
default
final
false
static
false

$_result

mixed $_result = ''

Result

Details

$_result
mixed
visibility
protected
default
final
false
static
false

$_serviceMap

Zend_Json_Server_Smd $_serviceMap = ''

Service map

Details

$_serviceMap
Zend_Json_Server_Smd
visibility
protected
default
final
false
static
false

$_version

string $_version = ''

JSON-RPC version

Details

$_version
string
visibility
protected
default
final
false
static
false

Methods

__toString

__toString( ) : string

Cast to string (JSON)

Output
string
Details
visibility
public
final
false
static
false

getArgs

getArgs( ) : mixed

Retrieve args

Output
mixed
Details
visibility
public
final
false
static
false

getError

getError( ) : null|Zend_Json_Server_Error

Get response error

Details
visibility
public
final
false
static
false

getId

getId( ) : mixed

Get request ID

Output
mixed
Details
visibility
public
final
false
static
false

getResult

getResult( ) : mixed

Get result

Output
mixed
Details
visibility
public
final
false
static
false

getServiceMap

getServiceMap( ) : Zend_Json_Server_Smd|null

Retrieve service map

Output
Zend_Json_Server_Smd|null
Details
visibility
public
final
false
static
false

getVersion

getVersion( ) : string

Retrieve JSON-RPC version

Output
string
Details
visibility
public
final
false
static
false

isError

isError( ) : bool

Is the response an error?

Output
bool
Details
visibility
public
final
false
static
false

setArgs

setArgs( mixed $args ) : self

Set args

Arguments
$args
mixed
Output
self
Details
visibility
public
final
false
static
false

setError

setError( Zend_Json_Server_Error $error ) : Zend_Json_Server_Response

Set result error

Arguments
$error
Zend_Json_Server_Error
Details
visibility
public
final
false
static
false

setId

setId( mixed $name ) : Zend_Json_Server_Response

Set request ID

Arguments
$name
mixed
Details
visibility
public
final
false
static
false

setResult

setResult( mixed $value ) : Zend_Json_Server_Response

Set result

Arguments
$value
mixed
Details
visibility
public
final
false
static
false

setServiceMap

setServiceMap( Zend_Json_Server_Smd $serviceMap ) : Zend_Json_Server_Response

Set service map object

Arguments
$serviceMap
Zend_Json_Server_Smd
Details
visibility
public
final
false
static
false

setVersion

setVersion( string $version ) : Zend_Json_Server_Response

Set JSON-RPC version

Arguments
$version
string
Details
visibility
public
final
false
static
false

toJson

toJson( ) : string

Cast to JSON

Output
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.