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.
bool $_autoEmitResponse = 'true'
Flag: whether or not to auto-emit the response
bool $_overwriteExistingMethods = 'true'
Zend_Json_Server_Request $_request = ''
Request object
Zend_Json_Server_Response $_response = ''
Response object
Zend_Json_Server_Smd $_serviceMap = ''
SMD object
array $_smdMethods = ''
SMD class accessors
Zend_Server_Description $_table = ''
__call(
string $method, array $args
)
:
mixed
Overload to accessors of SMD object
_addMethodServiceMap(
Zend_Server_Reflection_Function $method
)
:
void
Add service method to service map
_fixType(
string $type
)
:
string
Translate PHP type to JSON type
_getDefaultParams(
array $args, array $params
)
:
array
Get default params from signature
_getParams(
Zend_Server_Reflection_Function_Abstract $method
)
:
string|array
Get method param type
_getReadyResponse(
)
:
Zend_Json_Server_Response
Set response state
_getReturnType(
Zend_Server_Reflection_Function_Abstract $method
)
:
string|array
Get method return type
_getSmdMethods(
)
:
array
Retrieve list of allowed SMD methods for proxying
_handle(
)
:
void
Internal method for handling request
addFunction(
string|array $function, string $namespace
)
:
Zend_Json_Server
Attach a function or callback to the server
autoEmitResponse(
)
:
bool
Will we auto-emit the response?
fault(
string $fault
=
null, int $code
=
404, $data
=
null
)
:
false
Indicate fault response
getRequest(
)
:
Zend_Json_Server_Request
Get JSON-RPC request object
getResponse(
)
:
Zend_Json_Server_Response
Get response object
getServiceMap(
)
:
Zend_Json_Server_Smd
Retrieve SMD object
handle(
Zend_Json_Server_Request $request
=
false
)
:
null|Zend_Json_Server_Response
Handle request
loadFunctions(
array|Zend_Server_Definition $definition
)
:
void
Load function definitions
setAutoEmitResponse(
bool $flag
)
:
Zend_Json_Server
Set flag indicating whether or not to auto-emit response
setClass(
string $class, string $namespace, mixed $argv
=
null
)
:
Zend_Json_Server
Register a class with the server
setPersistence(
$mode
)
:
setRequest(
Zend_Json_Server_Request $request
)
:
Zend_Json_Server
Set request object
setResponse(
Zend_Json_Server_Response $response
)
:
Zend_Json_Server
Set response object