Represent a native XML-RPC value entity, used as parameters for the methods
called by the Zend\XmlRpc\Client object and as the return value for those calls.
This object as a very important static function Zend\XmlRpc\Value::getXmlRpcValue, this
function acts likes a factory for the Zend\XmlRpc\Value objects
Using this function, users/Zend\XmlRpc\Client object can create the Zend\XmlRpc\Value objects
from PHP variables, XML string or by specifying the exact XML-RPC native type
Methods
Set the value of an array native type
__construct(array $value)
Generate XML code that represent a native XML/RPC value
generateXml() : void
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::generateXml() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::generateXml() |
Get XML generator instance
getGenerator() : \Zend\XmlRpc\Generator\GeneratorInterface
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::getGenerator() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::getGenerator() |
Returns
Get the native XML-RPC type (the type is one of the Value::XMLRPC_TYPE_* constants)
getType() : string
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::getType() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::getType() |
Returns
string
Return the value of this object, convert the XML-RPC native collection values into a PHP array
getValue() : array
Inherited
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::getValue() |
Returns
array
Get XML-RPC type for a PHP native variable
getXmlRpcTypeByValue(mixed $value) : string
Inherited
static |
|
inherited_from |
\Zend\XmlRpc\AbstractValue::getXmlRpcTypeByValue() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::getXmlRpcTypeByValue() |
Parameters
$value
mixed
Exceptions
Returns
string
Creates a Value* object, representing a native XML-RPC value
A XmlRpcValue object can be created in 3 ways:
1.
getXmlRpcValue(mixed $value, \Zend\XmlRpc\Zend\XmlRpc\Value::constant $type) : \Zend\XmlRpc\AbstractValue
Inherited
Autodetecting the native type out of a PHP variable
(if $type is not set or equal to Value::AUTO_DETECT_TYPE)
2. By specifying the native type ($type is one of the Value::XMLRPC_TYPE_* constants)
3. From a XML string ($type is set to Value::XML_STRING)
By default the value type is autodetected according to it's PHP type
inherited_from |
\Zend\XmlRpc\AbstractValue::getXmlRpcValue() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::getXmlRpcValue() |
Parameters
$value
mixed
$type
\Zend\XmlRpc\Zend\XmlRpc\Value::constant
Exceptions
Returns
Return the XML code that represent a native MXL-RPC value
saveXml() : string
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::saveXml() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::saveXml() |
Returns
string
Changes the encoding of the generator
setEncoding(string $encoding) : void
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::setEncoding() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::setEncoding() |
Parameters
$encoding
string
Sets XML generator instance
setGenerator(\Zend\XmlRpc\Generator\GeneratorInterface $generator) : void
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::setGenerator() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::setGenerator() |
Parameters
_createSimpleXMLElement()
_createSimpleXMLElement($xml)
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::_createSimpleXMLElement() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::_createSimpleXMLElement() |
Parameters
$xml
Extract XML/RPC type and value from SimpleXMLElement object
_extractTypeAndValue(\SimpleXMLElement $xml, string $type, string $value) : void
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::_extractTypeAndValue() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::_extractTypeAndValue() |
Parameters
$type
string
&$type Type bind variable
$value
string
&$value Value bind variable
Generate the XML code that represent an array native MXL-RPC value
_generateXml() : void
Transform a PHP native variable into a XML-RPC native value
_phpVarToNativeXmlRpc(mixed $value) : \Zend\XmlRpc\AbstractValue
Inherited
static |
|
inherited_from |
\Zend\XmlRpc\AbstractValue::_phpVarToNativeXmlRpc() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::_phpVarToNativeXmlRpc() |
Parameters
$value
mixed
The PHP variable for conversion
Exceptions
Returns
_setXML()
_setXML($xml) : void
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::_setXML() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::_setXML() |
Parameters
$xml
Transform an XML string into a XML-RPC native value
_xmlStringToNativeXmlRpc(string | \SimpleXMLElement $xml) : \Zend\XmlRpc\AbstractValue
Inherited
static |
|
inherited_from |
\Zend\XmlRpc\AbstractValue::_xmlStringToNativeXmlRpc() |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::_xmlStringToNativeXmlRpc() |
Parameters
$xml
string\SimpleXMLElement
A SimpleXMLElement object represent the XML string It can be also a valid XML string for conversion
Exceptions
Returns
Properties
The native XML-RPC type of this object
One of the XMLRPC_TYPE_* constants
$type
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::$$type |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::$$type |
The native XML-RPC representation of this object's value
$value
Inherited
If the native type of this object is array or struct, this will be an array
of Value objects
inherited_from |
\Zend\XmlRpc\AbstractValue::$$value |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::$$value |
XML code representation of this object (will be calculated only once)
$xml
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::$$xml |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::$$xml |
Constants
Specify that the XML-RPC native type will be auto detected from a PHP variable type
AUTO_DETECT_TYPE
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::AUTO_DETECT_TYPE |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::AUTO_DETECT_TYPE |
XMLRPC_TYPE_APACHEI8
XMLRPC_TYPE_APACHEI8
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_APACHEI8 |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_APACHEI8 |
XMLRPC_TYPE_APACHENIL
XMLRPC_TYPE_APACHENIL
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_APACHENIL |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_APACHENIL |
XMLRPC_TYPE_ARRAY
XMLRPC_TYPE_ARRAY
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_ARRAY |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_ARRAY |
XMLRPC_TYPE_BASE64
XMLRPC_TYPE_BASE64
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_BASE64 |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_BASE64 |
XMLRPC_TYPE_BOOLEAN
XMLRPC_TYPE_BOOLEAN
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_BOOLEAN |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_BOOLEAN |
XMLRPC_TYPE_DATETIME
XMLRPC_TYPE_DATETIME
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_DATETIME |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_DATETIME |
XMLRPC_TYPE_DOUBLE
XMLRPC_TYPE_DOUBLE
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_DOUBLE |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_DOUBLE |
All the XML-RPC native types
XMLRPC_TYPE_I4
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_I4 |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_I4 |
XMLRPC_TYPE_I8
XMLRPC_TYPE_I8
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_I8 |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_I8 |
XMLRPC_TYPE_INTEGER
XMLRPC_TYPE_INTEGER
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_INTEGER |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_INTEGER |
XMLRPC_TYPE_NIL
XMLRPC_TYPE_NIL
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_NIL |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_NIL |
XMLRPC_TYPE_STRING
XMLRPC_TYPE_STRING
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_STRING |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_STRING |
XMLRPC_TYPE_STRUCT
XMLRPC_TYPE_STRUCT
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XMLRPC_TYPE_STRUCT |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XMLRPC_TYPE_STRUCT |
Specify that the XML-RPC value will be parsed out from a given XML code
XML_STRING
Inherited
inherited_from |
\Zend\XmlRpc\AbstractValue::XML_STRING |
inherited_from |
\Zend\XmlRpc\Value\AbstractCollection::XML_STRING |