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
string $_encoding = 'UTF-8'
array $_functions = 'array'
array $_headers = 'array'
string $_method = ''
Zend_Server_Reflection $_reflection = 'null'
boolean $_returnResponse = 'false'
Whether or not {@link handle()} should send output or return the response.
array $magicMethods = 'array'
__construct(
)
:
Constructor
_callObjectMethod(
string $class, array $args
)
:
mixed
Call an instance method of an object
_callStaticMethod(
string $class, array $args
)
:
mixed
Call a static class method and return the result
_handleScalar(
string|int|boolean $value
)
:
string
Handle a single value
_handleStruct(
array|object $struct
)
:
string
Handle an array or object result
_structValue(
mixed $struct, DOMDocument $dom, DOMElement $parent
)
:
void
Recursively iterate through a struct
Recursively iterates through an associative array or object's properties to build XML response.
addFunction(
string $function, string $namespace
)
:
Implement Zend_Server_Interface::addFunction()
fault(
$exception
=
null, int $code
=
null
)
:
DOMDocument
Implement Zend_Server_Interface::fault()
Creates XML error response, returning DOMDocument with response.
getEncoding(
)
:
string
Get XML encoding
getFunctions(
)
:
array
Implement Zend_Server_Interface::getFunctions()
getHeaders(
)
:
array
Retrieve any HTTP extra headers set by the server
handle(
array $request
=
false
)
:
string|void
Implement Zend_Server_Interface::handle()
loadFunctions(
array $functions
)
:
Implement Zend_Server_Interface::loadFunctions()
lowerCase(
string $value, string $key
)
:
string
Lowercase a string
Lowercase's a string by reference
returnResponse(
boolean $flag
=
null
)
:
boolean|Zend_Rest_Server
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, {@link handle()} will not send output, but will instead return the response from the dispatched function/method.
setClass(
string $classname, string $namespace, array $argv
=
array
)
:
Implement Zend_Server_Interface::setClass()
setEncoding(
string $encoding
)
:
Zend_Rest_Server
Set XML encoding
setPersistence(
int $mode
)
:
Implement Zend_Server_Interface::setPersistence()