__construct()
__toString()
addParam()
getEncoding()
getFault()
getMethod()
getParams()
getRawRequest()
getTypes()
isFault()
loadXml()
saveXml()
setEncoding()
setMethod()
setParams()
_getXmlRpcParams()
$encoding
$fault
$method
$params
$types
$xml
$xmlRpcParams
XmlRpc Request object -- Request via STDIN
Extends Zend\XmlRpc\Request to accept a request via STDIN. Request is built at construction time using data from STDIN; if no data is available, the request is declared a fault.
__construct()
Attempts to read from php://stdin 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() |
|---|
stringaddParam(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
stringOptional; type hinting
getEncoding() : string
| inherited_from | \Zend\XmlRpc\Request::getEncoding() |
|---|
stringgetMethod() : string
| inherited_from | \Zend\XmlRpc\Request::getMethod() |
|---|
stringgetParams() : array
| inherited_from | \Zend\XmlRpc\Request::getParams() |
|---|
arraygetRawRequest() : string
stringgetTypes() : array
| inherited_from | \Zend\XmlRpc\Request::getTypes() |
|---|
arrayisFault() : bool
| inherited_from | \Zend\XmlRpc\Request::isFault() |
|---|
boolloadXml(string $request) : bool
| inherited_from | \Zend\XmlRpc\Request::loadXml() |
|---|
string
\Zend\XmlRpc\Exception\ValueException |
if invalid XML |
|---|
boolTrue on success, false if an error occurred.saveXml() : string
| inherited_from | \Zend\XmlRpc\Request::saveXml() |
|---|
stringsetEncoding(string $encoding) : \Zend\XmlRpc\Request
| inherited_from | \Zend\XmlRpc\Request::setEncoding() |
|---|
string
setMethod(string $method) : bool
| inherited_from | \Zend\XmlRpc\Request::setMethod() |
|---|
string
boolReturns 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 |
|---|
$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 |
|---|