XmlRpc/Response/Http.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Controller
\Zend_XmlRpc_Response_Http
Container for accessing an XMLRPC return value and creating the XML response.
- Parent(s)
- \Zend_XmlRpc_Response
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\Zend_XmlRpc_Response
- Version
- $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
Properties

string $_encoding = 'UTF-8''UTF-8'Details- Type
- string
- Inherited_from
- \Zend_XmlRpc_Response::$$_encoding

null|\Zend_XmlRpc_Fault $_fault = nullnullDetails- Type
- null | \Zend_XmlRpc_Fault
- Inherited_from
- \Zend_XmlRpc_Response::$$_fault
Methods

__construct(mixed $return = null, string $type = null) : voidCan optionally pass in the return value and type hinting; otherwise, the return value can be set via setReturnValue().
| Name | Type | Description |
|---|---|---|
| $return | mixed | |
| $type | string |

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

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

loadXml(string $response) : booleanAttempts 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 |

setEncoding(string $encoding) : \Zend_XmlRpc_Response| Name | Type | Description |
|---|---|---|
| $encoding | string |
| Type | Description |
|---|---|
| \Zend_XmlRpc_Response |