Zend Framework
1.12
|
Public Member Functions | |
__construct () | |
Constructor. | |
setEncoding ($encoding) | |
Set XML encoding. | |
getEncoding () | |
Get XML encoding. | |
returnResponse ($flag=null) | |
Whether or not to return a response. | |
handle ($request=false) | |
Implement Zend_Server_Interface::handle() | |
setClass ($classname, $namespace= '', $argv=array()) | |
Implement Zend_Server_Interface::setClass() | |
fault ($exception=null, $code=null) | |
Implement Zend_Server_Interface::fault() | |
getHeaders () | |
Retrieve any HTTP extra headers set by the server. | |
addFunction ($function, $namespace= '') | |
Implement Zend_Server_Interface::addFunction() | |
getFunctions () | |
Implement Zend_Server_Interface::getFunctions() | |
loadFunctions ($functions) | |
Implement Zend_Server_Interface::loadFunctions() | |
setPersistence ($mode) | |
Implement Zend_Server_Interface::setPersistence() | |
Static Public Member Functions | |
static | lowerCase (&$value, &$key) |
Lowercase a string. | |
Protected Member Functions | |
_handleStruct ($struct) | |
Handle an array or object result. | |
_structValue ($struct, DOMDocument $dom, DOMElement $parent) | |
Recursively iterate through a struct. | |
_handleScalar ($value) | |
Handle a single value. | |
_callStaticMethod ($class, array $args) | |
Call a static class method and return the result. | |
_callObjectMethod ($class, array $args) | |
Call an instance method of an object. | |
Protected Attributes | |
$_args = array() | |
$_encoding = 'UTF-8' | |
$_functions = array() | |
$_headers = array() | |
$_method | |
$_reflection = null | |
$_returnResponse = false | |
Static Protected Attributes | |
static | $magicMethods |
__construct | ( | ) |
Constructor.
|
protected |
Call an instance method of an object.
string | $class | |
array | $args |
Zend_Rest_Server_Exception | For invalid class name |
|
protected |
Call a static class method and return the result.
string | $class | |
array | $args |
|
protected |
Handle a single value.
string | int | boolean | $value | Result value |
|
protected |
Handle an array or object result.
array | object | $struct | Result Value |
|
protected |
Recursively iterate through a struct.
Recursively iterates through an associative array or object's properties to build XML response.
mixed | $struct | |
DOMDocument | $dom | |
DOMElement | $parent |
addFunction | ( | $function, | |
$namespace = '' |
|||
) |
Implement Zend_Server_Interface::addFunction()
string | $function | Function Name |
string | $namespace | Function namespace (unused) |
Implements Zend_Server_Interface.
fault | ( | $exception = null , |
|
$code = null |
|||
) |
Implement Zend_Server_Interface::fault()
Creates XML error response, returning DOMDocument with response.
string | Exception | $fault | Message |
int | $code | Error Code |
Implements Zend_Server_Interface.
getEncoding | ( | ) |
Get XML encoding.
getFunctions | ( | ) |
Implement Zend_Server_Interface::getFunctions()
Implements Zend_Server_Interface.
getHeaders | ( | ) |
Retrieve any HTTP extra headers set by the server.
handle | ( | $request = false | ) |
Implement Zend_Server_Interface::handle()
array | $request |
Zend_Rest_Server_Exception |
Implements Zend_Server_Interface.
loadFunctions | ( | $functions | ) |
Implement Zend_Server_Interface::loadFunctions()
array | $functions |
Implements Zend_Server_Interface.
|
static |
Lowercase a string.
Lowercase's a string by reference
string | $value | |
string | $key |
returnResponse | ( | $flag = null | ) |
Whether or not to return a response.
If called without arguments, returns the value of the flag. If called with an argument, sets the flag.
When 'return response' is true, handle() will not send output, but will instead return the response from the dispatched function/method.
boolean | $flag |
setClass | ( | $classname, | |
$namespace = '' , |
|||
$argv = array() |
|||
) |
Implement Zend_Server_Interface::setClass()
string | $classname | Class name |
string | $namespace | Class namespace (unused) |
array | $argv | An array of Constructor Arguments |
Implements Zend_Server_Interface.
setEncoding | ( | $encoding | ) |
setPersistence | ( | $mode | ) |
Implement Zend_Server_Interface::setPersistence()
int | $mode |
Implements Zend_Server_Interface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |