Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Server_Interface
addFunction(
string $function, string $namespace
)
:
voidAttach a function as a server method
Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.
Detailsfault(
mixed $fault
=
null, int $code
=
404
)
:
mixedGenerate a server fault
DetailsgetFunctions(
)
:
arrayReturn a server definition array
Returns a server definition array as created using {@link * Zend_Server_Reflection}. Can be used for server introspection, documentation, or persistence.
Detailshandle(
mixed $request
=
false
)
:
mixedHandle a request
Requests may be passed in, or the server may automagically determine the request based on defaults. Dispatches server request to appropriate method and returns a response
DetailsloadFunctions(
$definition
)
:
voidLoad server definition
Used for persistence; loads a construct as returned by {@link getFunctions()}.
DetailssetClass(
mixed $class, string $namespace, null|array $argv
=
null
)
:
voidAttach a class to a 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.
DetailssetPersistence(
int $mode
)
:
voidSet server persistence
Details