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.
mixed $_id = ''
Request ID
bool $_isMethodError = 'false'
Flag
string $_method = ''
Requested method
string $_methodRegex = '/^[a-z][a-z0-9_.]*$/i'
Regex for method
array $_params = 'array'
Request parameters
string $_version = '1.0'
JSON-RPC version of request
__toString(
)
:
string
Cast request to string (JSON)
addParam(
mixed $value, string $key
=
null
)
:
Zend_Json_Server_Request
Add a parameter to the request
addParams(
array $params
)
:
Zend_Json_Server_Request
Add many params
getId(
)
:
mixed
Retrieve request identifier
getMethod(
)
:
string
Get request method name
getParam(
int|string $index
)
:
mixed|null
Retrieve param by index or key
getParams(
)
:
array
Retrieve parameters
getVersion(
)
:
string
Retrieve JSON-RPC version
isMethodError(
)
:
bool
Was a bad method provided?
loadJson(
string $json
)
:
void
Set request state based on JSON
setId(
mixed $name
)
:
Zend_Json_Server_Request
Set request identifier
setMethod(
string $name
)
:
Zend_Json_Server_Request
Set request method
setOptions(
array $options
)
:
Zend_Json_Server_Request
Set request state
setParams(
array $params
)
:
Zend_Json_Server_Request
Overwrite params
setVersion(
string $version
)
:
Zend_Json_Server_Request
Set JSON-RPC version
toJson(
)
:
string
Cast request to JSON