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.
array $_args = 'array'Class Constructor Args
Detailsstring $_encoding = 'UTF-8'
Detailsarray $_functions = 'array'
Detailsarray $_headers = 'array'
Detailsstring $_method = ''
DetailsZend_Server_Reflection $_reflection = 'null'
Detailsboolean $_returnResponse = 'false'Whether or not {@link handle()} should send output or return the response.
Detailsarray $magicMethods = 'array'
Details__construct(
)
:
Constructor
Details_callObjectMethod(
string $class, array $args
)
:
mixedCall an instance method of an object
Details_callStaticMethod(
string $class, array $args
)
:
mixedCall a static class method and return the result
Details_handleScalar(
string|int|boolean $value
)
:
stringHandle a single value
Details_handleStruct(
array|object $struct
)
:
stringHandle an array or object result
Details_structValue(
mixed $struct, DOMDocument $dom, DOMElement $parent
)
:
voidRecursively iterate through a struct
Recursively iterates through an associative array or object's properties to build XML response.
DetailsaddFunction(
string $function, string $namespace
)
:
Implement Zend_Server_Interface::addFunction()
Detailsfault(
$exception
=
null, int $code
=
null
)
:
DOMDocumentImplement Zend_Server_Interface::fault()
Creates XML error response, returning DOMDocument with response.
DetailsgetEncoding(
)
:
stringGet XML encoding
DetailsgetFunctions(
)
:
arrayImplement Zend_Server_Interface::getFunctions()
DetailsgetHeaders(
)
:
arrayRetrieve any HTTP extra headers set by the server
Detailshandle(
array $request
=
false
)
:
string|voidImplement Zend_Server_Interface::handle()
DetailsloadFunctions(
array $functions
)
:
Implement Zend_Server_Interface::loadFunctions()
DetailslowerCase(
string $value, string $key
)
:
stringLowercase a string
Lowercase's a string by reference
DetailsreturnResponse(
boolean $flag
=
null
)
:
boolean|Zend_Rest_ServerWhether 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, {@link handle()} will not send output, but will instead return the response from the dispatched function/method.
DetailssetClass(
string $classname, string $namespace, array $argv
=
array
)
:
Implement Zend_Server_Interface::setClass()
DetailssetEncoding(
string $encoding
)
:
Zend_Rest_ServerSet XML encoding
DetailssetPersistence(
int $mode
)
:
Implement Zend_Server_Interface::setPersistence()
Details