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.
HTTP response
Container for accessing an XMLRPC return value and creating the XML response.

__construct(
mixed $return
=
null, string $type
=
null
)
:
void
Constructor
Inherited from: \Zend_XmlRpc_Response::__construct()Can optionally pass in the return value and type hinting; otherwise, the return value can be set via {@link setReturnValue()}.
Name | Type | Description |
---|---|---|
$return | mixed | |
$type | string |

__toString(
)
:
string
Override __toString() to send HTTP Content-Type header
Type | Description |
---|---|
string |

_getXmlRpcReturn(
)
:
\Zend_XmlRpc_Value
Retrieve the XMLRPC value for the return value
Inherited from: \Zend_XmlRpc_Response::_getXmlRpcReturn()Type | Description |
---|---|
\Zend_XmlRpc_Value |

getEncoding(
)
:
string
Retrieve current response encoding
Inherited from: \Zend_XmlRpc_Response::getEncoding()Type | Description |
---|---|
string |

getFault(
)
:
null|\Zend_XmlRpc_Fault
Returns the fault, if any.
Inherited from: \Zend_XmlRpc_Response::getFault()Type | Description |
---|---|
null\Zend_XmlRpc_Fault |

getReturnValue(
)
:
mixed
Retrieve the return value
Inherited from: \Zend_XmlRpc_Response::getReturnValue()Type | Description |
---|---|
mixed |

isFault(
)
:
boolean
Is the response a fault response?
Inherited from: \Zend_XmlRpc_Response::isFault()Type | Description |
---|---|
boolean |

loadXml(
string $response
)
:
boolean
Load a response from an XML response
Inherited from: \Zend_XmlRpc_Response::loadXml()Attempts to load a response from an XMLRPC response, autodetecting if it is a fault response.
Name | Type | Description |
---|---|---|
$response | string |
Type | Description |
---|---|
boolean | True if a valid XMLRPC response, false if a fault response or invalid input |

saveXml(
)
:
string
Return response as XML
Inherited from: \Zend_XmlRpc_Response::saveXml()Type | Description |
---|---|
string |

setEncoding(
string $encoding
)
:
\Zend_XmlRpc_Response
Set encoding to use in response
Inherited from: \Zend_XmlRpc_Response::setEncoding()
setReturnValue(
mixed $value, string $type
=
null
)
:
void
Set the return value
Inherited from: \Zend_XmlRpc_Response::setReturnValue()Sets the return value, with optional type hinting if provided.
Name | Type | Description |
---|---|---|
$value | mixed | |
$type | string |