Zend Framework
1.12
|
Public Member Functions | |
addFunction ($function, $namespace= '') | |
Attach a function or callback to the server. | |
setClass ($class, $namespace= '', $argv=null) | |
Register a class with the server. | |
fault ($fault=null, $code=404, $data=null) | |
Indicate fault response. | |
handle ($request=false) | |
Handle request. | |
loadFunctions ($definition) | |
Load function definitions. | |
setPersistence ($mode) | |
Set server persistence. | |
setRequest (Zend_Json_Server_Request $request) | |
Set request object. | |
getRequest () | |
Get JSON-RPC request object. | |
setResponse (Zend_Json_Server_Response $response) | |
Set response object. | |
getResponse () | |
Get response object. | |
setAutoEmitResponse ($flag) | |
Set flag indicating whether or not to auto-emit response. | |
autoEmitResponse () | |
Will we auto-emit the response? | |
__call ($method, $args) | |
Overload to accessors of SMD object. | |
getServiceMap () | |
Retrieve SMD object. | |
![]() | |
__construct () | |
Constructor. | |
getFunctions () | |
Returns a list of registered methods. | |
![]() | |
fault ($fault=null, $code=404) | |
Generate a server fault. | |
Public Attributes | |
const | VERSION_1 = '1.0' |
#@+ Version Constants | |
const | VERSION_2 = '2.0' |
Protected Member Functions | |
_addMethodServiceMap (Zend_Server_Method_Definition $method) | |
Add service method to service map. | |
_fixType ($type) | |
Translate PHP type to JSON type. | |
_getDefaultParams (array $args, array $params) | |
Get default params from signature. | |
_getParams (Zend_Server_Method_Definition $method) | |
Get method param type. | |
_getReadyResponse () | |
Set response state. | |
_getReturnType (Zend_Server_Method_Definition $method) | |
Get method return type. | |
_getSmdMethods () | |
Retrieve list of allowed SMD methods for proxying. | |
_handle () | |
Internal method for handling request. | |
![]() | |
_buildCallback (Zend_Server_Reflection_Function_Abstract $reflection) | |
Build callback for method signature. | |
_buildSignature (Zend_Server_Reflection_Function_Abstract $reflection, $class=null) | |
Build a method signature. | |
_dispatch (Zend_Server_Method_Definition $invocable, array $params) | |
Dispatch method. | |
_fixType ($type) | |
Map PHP type to protocol type. | |
Protected Attributes | |
$_autoEmitResponse = true | |
$_overwriteExistingMethods = true | |
$_request | |
$_response | |
$_serviceMap | |
$_smdMethods | |
$_table | |
![]() | |
$_overwriteExistingMethods = false | |
$_table | |
Additional Inherited Members | |
![]() | |
static | lowerCase (&$value, &$key) |
Lowercase a string. | |
![]() | |
static | $magic_methods |
__call | ( | $method, | |
$args | |||
) |
Overload to accessors of SMD object.
string | $method | |
array | $args |
|
protected |
|
protected |
Translate PHP type to JSON type.
string | $type |
|
protected |
Get default params from signature.
array | $args | |
array | $params |
|
protected |
Get method param type.
Zend_Server_Reflection_Function_Abstract | $method |
|
protected |
Set response state.
|
protected |
Get method return type.
Zend_Server_Reflection_Function_Abstract | $method |
|
protected |
Retrieve list of allowed SMD methods for proxying.
|
protected |
Internal method for handling request.
addFunction | ( | $function, | |
$namespace = '' |
|||
) |
Attach a function or callback to the server.
string | array | $function | Valid PHP callback |
string | $namespace | Ignored |
Implements Zend_Server_Interface.
autoEmitResponse | ( | ) |
Will we auto-emit the response?
fault | ( | $fault = null , |
|
$code = 404 , |
|||
$data = null |
|||
) |
Indicate fault response.
string | $fault | |
int | $code |
getRequest | ( | ) |
Get JSON-RPC request object.
getResponse | ( | ) |
Get response object.
getServiceMap | ( | ) |
Retrieve SMD object.
handle | ( | $request = false | ) |
Handle request.
Zend_Json_Server_Request | $request |
Implements Zend_Server_Interface.
loadFunctions | ( | $definition | ) |
Load function definitions.
array | Zend_Server_Definition | $definition |
Implements Zend_Server_Interface.
setAutoEmitResponse | ( | $flag | ) |
Set flag indicating whether or not to auto-emit response.
bool | $flag |
setClass | ( | $class, | |
$namespace = '' , |
|||
$argv = null |
|||
) |
Register a class with the server.
string | $class | |
string | $namespace | Ignored |
mixed | $argv | Ignored |
Implements Zend_Server_Interface.
setPersistence | ( | $mode | ) |
Set server persistence.
int | $mode |
Implements Zend_Server_Interface.
setRequest | ( | Zend_Json_Server_Request | $request | ) |
setResponse | ( | Zend_Json_Server_Response | $response | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const VERSION_1 = '1.0' |
#@+ Version Constants
const VERSION_2 = '2.0' |