Docs For Class Zend_Server_Interface

## Interface Zend_Server_Interface

Description

Zend_Server_Interface

- version: $Id: Interface.php 1246 2006-10-11 18:42:06Z matthew $
- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Server/Interface.php (line 30)

Method Summary
void addFunction (string $function, [string $namespace = ''], null|array 2)
mixed fault ([mixed $fault = null], [int $code = 404])
array getFunctions ()
mixed handle ([mixed $request = false])
void loadFunctions ( $definition, array $array)
void setClass (mixed $class, [string $namespace = ''], [mixed $argv = null])
void setPersistence (int $mode)
Methods
addFunction (line 44)

Attach a function as a server method

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

- access: public

void addFunction (string $function, [string $namespace = ''], null|array 2)

- string $function
- string $namespace
- null|array 2: Optional array of arguments to pass to callbacks at dispatch.

fault (line 74)

Generate a server fault

- access: public

mixed fault ([mixed $fault = null], [int $code = 404])

- mixed $fault
- int $code

getFunctions (line 98)

Return a server definition array

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

- access: public

array getFunctions ()
handle (line 86)

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

- access: public

mixed handle ([mixed $request = false])

- mixed $request

loadFunctions (line 108)

Load server definition

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

- access: public

void loadFunctions ( $definition, array $array)

- array $array
- $definition

setClass (line 65)

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.

- access: public

void setClass (mixed $class, [string $namespace = ''], [mixed $argv = null])

- mixed $class: Class name or object instance to examine and attach to the server.
- string $namespace: Optional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks.

setPersistence (line 117)

Set server persistence

- access: public
- todo: Determine how to implement this

void setPersistence (int $mode)

- int $mode

Documentation generated on Sun, 29 Oct 2006 21:27:58 -0600 by phpDocumentor 1.3.0RC6