Moodle  2.2.1
http://www.collinsharper.com
Zend_Server_Interface Interface Reference
Inheritance diagram for Zend_Server_Interface:

Public Member Functions

 addFunction ($function, $namespace= '')
 setClass ($class, $namespace= '', $argv=null)
 fault ($fault=null, $code=404)
 handle ($request=false)
 getFunctions ()
 loadFunctions ($definition)
 setPersistence ($mode)

Detailed Description

Definition at line 30 of file Interface.php.


Member Function Documentation

addFunction ( function,
namespace = '' 
)

Attach a function as a server method

Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.

Parameters:
string$function
string$namespace
null|arrayOptional array of arguments to pass to callbacks at dispatch.
Returns:
void

Implemented in Zend_Amf_Server, Zend_Rest_Server, Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_XmlRpc_Server.

fault ( fault = null,
code = 404 
)

Generate a server fault

Parameters:
mixed$fault
int$code
Returns:
mixed

Implemented in Zend_Soap_Server, Zend_Amf_Server, Zend_Soap_AutoDiscover, Zend_Rest_Server, Zend_XmlRpc_Server, Moodle_Amf_Server, moodle_zend_soap_server, and moodle_zend_xmlrpc_server.

Return a server definition array

Returns a server definition array as created using Zend_Server_Reflection. Can be used for server introspection, documentation, or persistence.

public

Returns:
array

Implemented in Zend_Amf_Server, Zend_Soap_Server, Zend_Rest_Server, Zend_Soap_AutoDiscover, Zend_XmlRpc_Server, and Zend_Server_Abstract.

Here is the caller graph for this function:

handle ( request = false)

Handle 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

Parameters:
mixed$request
Returns:
mixed

Implemented in Zend_Soap_Server, Zend_Amf_Server, Zend_Soap_AutoDiscover, Zend_XmlRpc_Server, and Zend_Rest_Server.

loadFunctions ( definition)

Load server definition

Used for persistence; loads a construct as returned by getFunctions().

Parameters:
array$array
Returns:
void

Implemented in Zend_Amf_Server, Zend_Soap_Server, Zend_Rest_Server, Zend_Soap_AutoDiscover, and Zend_XmlRpc_Server.

setClass ( class,
namespace = '',
argv = null 
)

Attach 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.

Parameters:
mixed$classClass name or object instance to examine and attach to the server.
string$namespaceOptional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks.
null|arrayOptional array of arguments to pass to callbacks at dispatch.
Returns:
void

Implemented in Zend_Amf_Server, Zend_Soap_Server, Zend_Rest_Server, Zend_XmlRpc_Server, and Zend_Soap_AutoDiscover.

Here is the caller graph for this function:

setPersistence ( mode)

Set server persistence

Todo:
Determine how to implement this
Parameters:
int$mode
Returns:
void

Implemented in Zend_Amf_Server, Zend_Soap_Server, Zend_Rest_Server, Zend_Soap_AutoDiscover, and Zend_XmlRpc_Server.


The documentation for this interface was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations