## Interface Zend_Server_Interface

Description

Zend_Server_Interface

- version: $Id: Interface.php 3452 2007-02-15 18:14:15Z matthew $
- license: New BSD License
- copyright: Copyright (c) 2005-2007 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 = ''], [null|array $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 = ''], [null|array $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.
- null|array $argv: Optional array of arguments to pass to callbacks at dispatch.

setPersistence (line 117)

Set server persistence

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

void setPersistence (int $mode)

- int $mode

Documentation generated on Wed, 21 Feb 2007 11:52:30 -0800 by phpDocumentor 1.3.1