__construct()
__toString()
addParam()
getEncoding()
getFault()
getFullRequest()
getHeaders()
getMethod()
getParams()
getRawRequest()
getTypes()
isFault()
loadXml()
saveXml()
setEncoding()
setMethod()
setParams()
_getXmlRpcParams()
$encoding
$fault
$headers
$method
$params
$types
$xml
$xmlRpcParams
XmlRpc Request object -- Request via HTTP
Extends Zend\XmlRpc\Request to accept a request via HTTP. Request is built at construction time using a raw POST; if no data is available, the request is declared a fault.
__construct()
Attempts to read from php://input to get raw POST request; if an error occurs in doing so, or if the XML is invalid, the request is declared a fault.
__toString() : string
inherited_from | \Zend\XmlRpc\Request::__toString() |
---|
string
addParam(mixed $value, string $type) : void
Adds a parameter to the parameter stack, associating it with the type $type if provided
inherited_from | \Zend\XmlRpc\Request::addParam() |
---|
mixed
string
Optional; type hinting
getEncoding() : string
inherited_from | \Zend\XmlRpc\Request::getEncoding() |
---|
string
getFullRequest() : string
string
getHeaders() : array
Gets all headers as key => value pairs and returns them.
array
getMethod() : string
inherited_from | \Zend\XmlRpc\Request::getMethod() |
---|
string
getParams() : array
inherited_from | \Zend\XmlRpc\Request::getParams() |
---|
array
getRawRequest() : string
string
getTypes() : array
inherited_from | \Zend\XmlRpc\Request::getTypes() |
---|
array
isFault() : bool
inherited_from | \Zend\XmlRpc\Request::isFault() |
---|
bool
loadXml(string $request) : bool
inherited_from | \Zend\XmlRpc\Request::loadXml() |
---|
string
\Zend\XmlRpc\Exception\ValueException |
if invalid XML |
---|
bool
True on success, false if an error occurred.saveXml() : string
inherited_from | \Zend\XmlRpc\Request::saveXml() |
---|
string
setEncoding(string $encoding) : \Zend\XmlRpc\Request
inherited_from | \Zend\XmlRpc\Request::setEncoding() |
---|
string
setMethod(string $method) : bool
inherited_from | \Zend\XmlRpc\Request::setMethod() |
---|
string
bool
Returns true on success, false if method name is invalidsetParams() : void
If called with a single, array value, that array is used to set the parameters stack. If called with multiple values or a single non-array value, the arguments are used to set the parameters stack.
Best is to call with array of the format, in order to allow type hinting when creating the XMLRPC values for each parameter:
$array = array(
array(
'value' => $value,
'type' => $type
)[, ... ]
);
access | public |
---|---|
inherited_from | \Zend\XmlRpc\Request::setParams() |
_getXmlRpcParams() : array
inherited_from | \Zend\XmlRpc\Request::_getXmlRpcParams() |
---|
array
$encoding : string
inherited_from | \Zend\XmlRpc\Request::$$encoding |
---|
$fault : \Zend\XmlRpc\Fault
inherited_from | \Zend\XmlRpc\Request::$$fault |
---|
$headers : array
$method : string
inherited_from | \Zend\XmlRpc\Request::$$method |
---|
$params : array
inherited_from | \Zend\XmlRpc\Request::$$params |
---|
$types : array
inherited_from | \Zend\XmlRpc\Request::$$types |
---|
$xml : string
$xmlRpcParams : array
inherited_from | \Zend\XmlRpc\Request::$$xmlRpcParams |
---|