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 specifing the exact XML-RPC natvie type
category | Zend |
---|---|
package | Zend_XmlRpc |
subpackage | Value |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_XmlRpc_Value_Integer |
__construct(mixed $value)
inherited_from | \Zend_XmlRpc_Value_Integer::__construct() |
---|
mixed
__construct(integer $value)
integer
generateXml() : void
getGenerator() : \Zend_XmlRpc_Generator_GeneratorAbstract
\Zend_XmlRpc_Generator_GeneratorAbstract
getType() : string
string
getValue() : string
inherited_from | \Zend_XmlRpc_Value_Integer::getValue() |
---|
string
getValue() : mixed
mixed
getXmlRpcTypeByValue(mixed $value) : string
static |
---|
mixed
string
getXmlRpcValue(mixed $value, \Zend_XmlRpc_Value::constant $type = self::AUTO_DETECT_TYPE
) : \Zend_XmlRpc_Value
By default the value type is autodetected according to it's PHP type
static |
---|
mixed
\Zend_XmlRpc_Value::constant
\Zend_XmlRpc_Value
saveXml() : string
string
setEncoding(string $encoding) : void
string
setGenerator(\Zend_XmlRpc_Generator_GeneratorAbstract $generator) : void
\Zend_XmlRpc_Generator_GeneratorAbstract
_createSimpleXMLElement($xml)
_extractTypeAndValue(\SimpleXMLElement $xml, $type, $value) : void
\SimpleXMLElement
_generateXml() : void
_phpVarToNativeXmlRpc(mixed $value) : \Zend_XmlRpc_Value
static |
---|
mixed
The PHP variable for convertion
\Zend_XmlRpc_Value
_setXML(string $xml) : void
string
_xmlStringToNativeXmlRpc(string|\SimpleXMLElement $xml) : \Zend_XmlRpc_Value
static |
---|
string
\SimpleXMLElement
A SimpleXMLElement object represent the XML string It can be also a valid XML string for convertion
\Zend_XmlRpc_Value
$_generator : \Zend_XmlRpc_Generator_GeneratorAbstract
$_type
$_value
If the native type of this object is array or struct, this will be an array of Zend_XmlRpc_Value objects
$_xml
AUTO_DETECT_TYPE = 'auto_detect'
XMLRPC_TYPE_APACHEI8 = 'ex:i8'
XMLRPC_TYPE_APACHENIL = 'ex:nil'
XMLRPC_TYPE_ARRAY = 'array'
XMLRPC_TYPE_BASE64 = 'base64'
XMLRPC_TYPE_BOOLEAN = 'boolean'
XMLRPC_TYPE_DATETIME = 'dateTime.iso8601'
XMLRPC_TYPE_DOUBLE = 'double'
XMLRPC_TYPE_I4 = 'i4'
XMLRPC_TYPE_I8 = 'i8'
XMLRPC_TYPE_INTEGER = 'int'
XMLRPC_TYPE_NIL = 'nil'
XMLRPC_TYPE_STRING = 'string'
XMLRPC_TYPE_STRUCT = 'struct'
XML_STRING = 'xml'