__call()
__construct()
addFunction()
fault()
getFunctions()
getRequest()
getResponse()
getReturnResponse()
getServiceMap()
handle()
loadFunctions()
setClass()
setPersistence()
setRequest()
setResponse()
setReturnResponse()
_addMethodServiceMap()
_buildCallback()
_buildSignature()
_dispatch()
_fixType()
_getDefaultParams()
_getParams()
_getReadyResponse()
_getReturnType()
_getSmdMethods()
_handle()
isAssociative()
$overwriteExistingMethods
$request
$response
$returnResponse
$serviceMap
$smdMethods
$table
VERSION_1
VERSION_2
Abstract Server implementation
__call(string $method, array $args) : mixed
string
array
mixed
__construct()
Setup server description
inherited_from | \Zend\Server\AbstractServer::__construct() |
---|
addFunction(string | array | \Zend\Json\Server\callable $function, string $namespace) : \Zend\Json\Server\Server
Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.
stringarray\Zend\Json\Server\callable
Valid PHP callback
string
Ignored
\Zend\Json\Server\Exception\InvalidArgumentException |
if function invalid or not callable |
---|
getFunctions() : \Zend\Server\Definition
Returns an array of method definitions.
inherited_from | \Zend\Server\AbstractServer::getFunctions() |
---|
getReturnResponse() : bool
bool
handle(\Zend\Json\Server\Request $request) : null | \Zend\Json\Server\Response
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
\Zend\Json\Server\Request
\Zend\Json\Server\Exception\InvalidArgumentException |
---|
loadFunctions(array | \Zend\Server\Definition $definition) : void
Used for persistence; loads a construct as returned by getFunctions().
array\Zend\Server\Definition
\Zend\Json\Server\Exception\InvalidArgumentException |
---|
setClass(string $class, string $namespace, mixed $argv) : \Zend\Json\Server\Server
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.
string
string
Ignored
mixed
Ignored
setPersistence(int $mode) : void
int
setReturnResponse(bool $flag) : \Zend\Json\Server\Server
If true, handle() will return the response instead of automatically sending it back to the requesting client.
The response is always available via getResponse().
bool
_addMethodServiceMap(\Zend\Server\Method\Definition $method) : void
\Zend\Server\Method\Definition
_buildCallback(\Zend\Server\Reflection\AbstractFunction $reflection) : \Zend\Server\Method\Callback
inherited_from | \Zend\Server\AbstractServer::_buildCallback() |
---|
\Zend\Server\Reflection\AbstractFunction
_buildSignature(\Zend\Server\Reflection\AbstractFunction $reflection, null | string | object $class) : \Zend\Server\Method\Definition
inherited_from | \Zend\Server\AbstractServer::_buildSignature() |
---|
\Zend\Server\Reflection\AbstractFunction
nullstringobject
\Zend\Server\Exception\RuntimeException |
on duplicate entry |
---|
_dispatch(\Zend\Server\Method\Definition $invokable, array $params) : mixed
inherited_from | \Zend\Server\AbstractServer::_dispatch() |
---|
\Zend\Server\Method\Definition
array
mixed
_fixType(string $type) : string
string
string
_getDefaultParams(array $args, array $params) : array
array
array
array
_getParams(\Zend\Server\Method\Definition $method) : string | array
_getReturnType(\Zend\Server\Method\Definition $method) : string | array
_getSmdMethods() : array
array
_handle() : void
isAssociative(array $array) : bool
array
bool
$overwriteExistingMethods : bool
$returnResponse : bool
$smdMethods : array
$table : \Zend\Server\Definition
inherited_from | \Zend\Server\AbstractServer::$$table |
---|
VERSION_1
VERSION_2