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.
XmlRpc Response
Container for accessing an XMLRPC return value and creating the XML response.
string $_encoding = 'UTF-8'Response character encoding
Detailsnull|Zend_XmlRpc_Fault $_fault = 'null'Fault, if response is a fault response
Detailsmixed $_return = ''Return value
Detailsstring $_type = ''Return type
Details__construct(
mixed $return
=
null, string $type
=
null
)
:
voidConstructor
Can optionally pass in the return value and type hinting; otherwise, the return value can be set via {@link setReturnValue()}.
Details__toString(
)
:
stringReturn XML response
Details_getXmlRpcReturn(
)
:
Zend_XmlRpc_ValueRetrieve the XMLRPC value for the return value
DetailsgetEncoding(
)
:
stringRetrieve current response encoding
DetailsgetFault(
)
:
null|Zend_XmlRpc_FaultReturns the fault, if any.
DetailsgetReturnValue(
)
:
mixedRetrieve the return value
DetailsisFault(
)
:
booleanIs the response a fault response?
DetailsloadXml(
string $response
)
:
booleanLoad a response from an XML response
Attempts to load a response from an XMLRPC response, autodetecting if it is a fault response.
DetailssaveXml(
)
:
stringReturn response as XML
DetailssetEncoding(
string $encoding
)
:
Zend_XmlRpc_ResponseSet encoding to use in response
DetailssetReturnValue(
mixed $value, string $type
=
null
)
:
voidSet the return value
Sets the return value, with optional type hinting if provided.
Details