__construct()
addFunction()
fault()
getFunctions()
getResponse()
getReturnResponse()
handle()
loadFunctions()
setClass()
setPersistence()
setReturnResponse()
_buildCallback()
_buildSignature()
_dispatch()
_fixType()
$overwriteExistingMethods
$table
Abstract Server implementation
__construct()
Setup server description
addFunction(string $function, string $namespace) : void
Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.
| inherited_from | \Zend\Server\Server::addFunction() |
|---|
string
string
fault(mixed $fault, int $code) : mixed
| inherited_from | \Zend\Server\Server::fault() |
|---|
mixed
int
mixedgetResponse() : string | object
| inherited_from | \Zend\Server\Server::getResponse() |
|---|
stringobjectContent of last response, or response object that implements __toString() methods.getReturnResponse() : bool
| inherited_from | \Zend\Server\Server::getReturnResponse() |
|---|
bool$flag Current status.handle(mixed $request) : mixed
Requests may be passed in, or the server may automatically determine the request based on defaults. Dispatches server request to appropriate method and returns a response
| inherited_from | \Zend\Server\Server::handle() |
|---|
mixed
mixedloadFunctions(array $definition) : void
Used for persistence; loads a construct as returned by getFunctions().
| inherited_from | \Zend\Server\Server::loadFunctions() |
|---|
array
setClass(mixed $class, string $namespace, null | array $argv) : void
The individual implementations should probably allow passing a variable number of arguments in, so that developers may define custom runtime arguments to pass to server methods.
Namespacing is primarily for xmlrpc, but could be used for other implementations as well.
| inherited_from | \Zend\Server\Server::setClass() |
|---|
mixedClass name or object instance to examine and attach to the server.
stringOptional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks.
nullarrayOptional array of arguments to pass to callbacks at dispatch.
setPersistence(int $mode) : void
| inherited_from | \Zend\Server\Server::setPersistence() |
|---|
int
setReturnResponse(bool $flag) : \Zend\Server\Server
To unify all servers, default behavior should be to auto-emit response.
| inherited_from | \Zend\Server\Server::setReturnResponse() |
|---|
bool
\Zend\Server\ServerSelf instance._buildCallback(\Zend\Server\Reflection\AbstractFunction $reflection) : \Zend\Server\Method\Callback
_buildSignature(\Zend\Server\Reflection\AbstractFunction $reflection, null | string | object $class) : \Zend\Server\Method\Definition
\Zend\Server\Reflection\AbstractFunction
nullstringobject
\Zend\Server\Exception\RuntimeException |
on duplicate entry |
|---|
_dispatch(\Zend\Server\Method\Definition $invokable, array $params) : mixed
_fixType(string $type) : string
string
string$overwriteExistingMethods : bool