Container for accessing an XMLRPC return value and creating the XML response.
Methods
Constructor
__construct(mixed $return, string $type)
Inherited
Can optionally pass in the return value and type hinting; otherwise, the
return value can be set via setReturnValue().
inherited_from |
\Zend\XmlRpc\Response::__construct() |
Parameters
$return
mixed
$type
string
Override __toString() to send HTTP Content-Type header
__toString() : string
Retrieve current response encoding
getEncoding() : string
Inherited
inherited_from |
\Zend\XmlRpc\Response::getEncoding() |
Returns
string
Returns the fault, if any.
getFault() : null | \Zend\XmlRpc\Fault
Inherited
inherited_from |
\Zend\XmlRpc\Response::getFault() |
Returns
Retrieve the return value
getReturnValue() : mixed
Inherited
inherited_from |
\Zend\XmlRpc\Response::getReturnValue() |
Returns
mixed
Is the response a fault response?
isFault() : bool
Inherited
inherited_from |
\Zend\XmlRpc\Response::isFault() |
Returns
bool
Load a response from an XML response
loadXml(string $response) : bool
Inherited
Attempts to load a response from an XMLRPC response, autodetecting if it
is a fault response.
inherited_from |
\Zend\XmlRpc\Response::loadXml() |
Parameters
$response
string
Exceptions
Returns
bool
True if a valid XMLRPC response, false if a fault response or invalid input
Return response as XML
saveXml() : string
Inherited
inherited_from |
\Zend\XmlRpc\Response::saveXml() |
Returns
string
Set encoding to use in response
setEncoding(string $encoding) : \Zend\XmlRpc\Response
Inherited
inherited_from |
\Zend\XmlRpc\Response::setEncoding() |
Parameters
$encoding
string
Returns
Set the return value
setReturnValue(mixed $value, string $type) : void
Inherited
Sets the return value, with optional type hinting if provided.
inherited_from |
\Zend\XmlRpc\Response::setReturnValue() |
Parameters
$value
mixed
$type
string
Retrieve the XMLRPC value for the return value
_getXmlRpcReturn() : \Zend\XmlRpc\AbstractValue
Inherited
inherited_from |
\Zend\XmlRpc\Response::_getXmlRpcReturn() |
Returns
Properties
Response character encoding
$encoding : string
Inherited
inherited_from |
\Zend\XmlRpc\Response::$$encoding |
Fault, if response is a fault response
$fault : null | \Zend\XmlRpc\Fault
Inherited
inherited_from |
\Zend\XmlRpc\Response::$$fault |
Return value
$return : mixed
Inherited
inherited_from |
\Zend\XmlRpc\Response::$$return |
Return type
$type : string
Inherited
inherited_from |
\Zend\XmlRpc\Response::$$type |