HTTP response
Container for accessing an XMLRPC return value and creating the XML response.
package | Default |
---|---|
inherited_from | \Zend\XmlRpc\Response |
__construct(mixed $return= null
, string $type= null
)
Can optionally pass in the return value and type hinting; otherwise, the return value can be set via \setReturnValue().
mixed
string
__toString() : string
inherited_from | \Zend\XmlRpc\Response::__toString() |
---|
string
__toString() : string
string
getEncoding() : string
string
getFault() : null | \Zend\XmlRpc\Fault
null
\Zend\XmlRpc\Fault
getReturnValue() : mixed
mixed
isFault() : boolean
boolean
loadXml(string $response) : boolean
Attempts to load a response from an XMLRPC response, autodetecting if it is a fault response.
string
\Zend\XmlRpc\Exception\ValueException |
if invalid XML |
---|
boolean
True if a valid XMLRPC response, false if a fault
response or invalid inputsaveXml() : string
string
setEncoding(string $encoding) : \Zend\XmlRpc\Response
string
\Zend\XmlRpc\Response
setReturnValue(mixed $value, string $type = null
) : void
Sets the return value, with optional type hinting if provided.
mixed
string
_getXmlRpcReturn() : \Zend\XmlRpc\AbstractValue
\Zend\XmlRpc\AbstractValue
$encoding : string
'UTF-8'
$fault : null | \Zend\XmlRpc\Fault
null
$return : mixed
$type : string