addFunction()
fault()
getFunctions()
getResponse()
getReturnResponse()
handle()
loadFunctions()
setClass()
setPersistence()
setReturnResponse()
Server Interface
addFunction(string $function, string $namespace) : void
Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.
string
string
fault(mixed $fault, int $code) : mixed
mixed
int
mixed
getFunctions() : array
Returns a server definition array as created using Reflection. Can be used for server introspection, documentation, or persistence.
array
getResponse() : string | object
string
object
Content of last response, or response object that implements __toString() methods.getReturnResponse() : bool
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
mixed
mixed
loadFunctions(array $definition) : void
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.
mixed
Class name or object instance to examine and attach to the server.
string
Optional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks.
nullarray
Optional array of arguments to pass to callbacks at dispatch.
setPersistence(int $mode) : void
todo | Determine how to implement this |
---|
int
setReturnResponse(bool $flag) : \Zend\Server\Server
To unify all servers, default behavior should be to auto-emit response.
bool
\Zend\Server\Server
Self instance.