generateXml()
getGenerator()
getType()
getValue()
getXmlRpcTypeByValue()
getXmlRpcValue()
saveXml()
setEncoding()
setGenerator()
_createSimpleXMLElement()
_extractTypeAndValue()
_phpVarToNativeXmlRpc()
_setXML()
_xmlStringToNativeXmlRpc()
$generator
$type
$value
$xml
AUTO_DETECT_TYPE
XMLRPC_TYPE_APACHEI8
XMLRPC_TYPE_APACHENIL
XMLRPC_TYPE_ARRAY
XMLRPC_TYPE_BASE64
XMLRPC_TYPE_BOOLEAN
XMLRPC_TYPE_DATETIME
XMLRPC_TYPE_DOUBLE
XMLRPC_TYPE_I4
XMLRPC_TYPE_I8
XMLRPC_TYPE_INTEGER
XMLRPC_TYPE_NIL
XMLRPC_TYPE_STRING
XMLRPC_TYPE_STRUCT
XML_STRING
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
generateXml() : void
getGenerator() : \Zend\XmlRpc\Generator\GeneratorInterface
getType() : string
string
getValue() : mixed
mixed
getXmlRpcTypeByValue(mixed $value) : string
static |
---|
mixed
\Zend\XmlRpc\Exception\InvalidArgumentException |
---|
string
getXmlRpcValue(mixed $value, \Zend\XmlRpc\Zend\XmlRpc\Value::constant $type) : \Zend\XmlRpc\AbstractValue
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
mixed
\Zend\XmlRpc\Zend\XmlRpc\Value::constant
\Zend\XmlRpc\Exception\ValueException |
---|
saveXml() : string
string
setEncoding(string $encoding) : void
string
setGenerator(\Zend\XmlRpc\Generator\GeneratorInterface $generator) : void
null\Zend\XmlRpc\Generator\GeneratorInterface
_createSimpleXMLElement($xml)
_extractTypeAndValue(\SimpleXMLElement $xml, string $type, string $value) : void
\SimpleXMLElement
string
&$type Type bind variable
string
&$value Value bind variable
_phpVarToNativeXmlRpc(mixed $value) : \Zend\XmlRpc\AbstractValue
static |
---|
mixed
The PHP variable for conversion
\Zend\XmlRpc\Exception\InvalidArgumentException |
---|
_setXML($xml) : void
_xmlStringToNativeXmlRpc(string | \SimpleXMLElement $xml) : \Zend\XmlRpc\AbstractValue
static |
---|
string\SimpleXMLElement
A SimpleXMLElement object represent the XML string It can be also a valid XML string for conversion
\Zend\XmlRpc\Exception\ValueException |
---|
$type
$value
If the native type of this object is array or struct, this will be an array of Value objects
$xml
AUTO_DETECT_TYPE
XMLRPC_TYPE_APACHEI8
XMLRPC_TYPE_APACHENIL
XMLRPC_TYPE_ARRAY
XMLRPC_TYPE_BASE64
XMLRPC_TYPE_BOOLEAN
XMLRPC_TYPE_DATETIME
XMLRPC_TYPE_DOUBLE
XMLRPC_TYPE_I4
XMLRPC_TYPE_I8
XMLRPC_TYPE_INTEGER
XMLRPC_TYPE_NIL
XMLRPC_TYPE_STRING
XMLRPC_TYPE_STRUCT
XML_STRING