Zend Framework
2.4
|
Abstract Server implementation. More...
Public Member Functions | |
__construct () | |
Constructor. | |
getFunctions () | |
Returns a list of registered methods. | |
![]() | |
addFunction ($function, $namespace= '') | |
Attach a function as a server method. | |
setClass ($class, $namespace= '', $argv=null) | |
Attach a class to a server. | |
fault ($fault=null, $code=404) | |
Generate a server fault. | |
handle ($request=false) | |
Handle a request. | |
loadFunctions ($definition) | |
Load server definition. | |
setPersistence ($mode) | |
Set server persistence. | |
setReturnResponse ($flag=true) | |
Sets auto-response flag for the server. | |
getReturnResponse () | |
Returns auto-response flag of the server. | |
getResponse () | |
Returns last produced response. | |
Protected Member Functions | |
_buildCallback (Reflection\AbstractFunction $reflection) | |
Build callback for method signature. | |
_buildSignature (Reflection\AbstractFunction $reflection, $class=null) | |
Build a method signature. | |
_dispatch (Method\Definition $invokable, array $params) | |
Dispatch method. | |
_fixType ($type) | |
Map PHP type to protocol type. | |
Protected Attributes | |
$overwriteExistingMethods = false | |
$table | |
Abstract Server implementation.
__construct | ( | ) |
Constructor.
Setup server description
|
protected |
Build callback for method signature.
Reflection\AbstractFunction | $reflection |
|
protected |
Build a method signature.
Reflection\AbstractFunction | $reflection | |
null | string | object | $class |
Exception\RuntimeException | on duplicate entry |
|
protected |
Dispatch method.
Method\Definition | $invokable | |
array | $params |
|
abstractprotected |
Map PHP type to protocol type.
string | $type |
getFunctions | ( | ) |
Returns a list of registered methods.
Returns an array of method definitions.
Implements Server.
|
protected |
|
protected |