Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
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
AUTO_DETECT_TYPE = 'auto_detect'
Specify that the XML-RPC native type will be auto detected from a PHP variable type
Details XML_STRING = 'xml'
Specify that the XML-RPC value will be parsed out from a given XML code
Details XMLRPC_TYPE_I4 = 'i4'
All the XML-RPC native types
Details XMLRPC_TYPE_INTEGER = 'int'
Details XMLRPC_TYPE_I8 = 'i8'
Details XMLRPC_TYPE_APACHEI8 = 'ex:i8'
Details XMLRPC_TYPE_DOUBLE = 'double'
Details XMLRPC_TYPE_BOOLEAN = 'boolean'
Details XMLRPC_TYPE_STRING = 'string'
Details XMLRPC_TYPE_DATETIME = 'dateTime.iso8601'
Details XMLRPC_TYPE_BASE64 = 'base64'
Details XMLRPC_TYPE_ARRAY = 'array'
Details XMLRPC_TYPE_STRUCT = 'struct'
Details XMLRPC_TYPE_NIL = 'nil'
Details XMLRPC_TYPE_APACHENIL = 'ex:nil'
DetailsZend_XmlRpc_Generator_GeneratorAbstract $_generator = ''
Details $_type = ''The native XML-RPC type of this object One of the XMLRPC_TYPE_* constants
Details $_value = ''The native XML-RPC representation of this object's value
If the native type of this object is array or struct, this will be an array of Zend_XmlRpc_Value objects
Details $_xml = ''XML code representation of this object (will be calculated only once)
Details_createSimpleXMLElement(
$xml
)
:
Details_extractTypeAndValue(
SimpleXMLElement $xml, string $type, string $value
)
:
voidExtract XML/RPC type and value from SimpleXMLElement object
Details_phpVarToNativeXmlRpc(
mixed $value
)
:
Zend_XmlRpc_ValueTransform a PHP native variable into a XML-RPC native value
Details_setXML(
$xml
)
:
void
Details_xmlStringToNativeXmlRpc(
string|SimpleXMLElement $xml
)
:
Zend_XmlRpc_ValueTransform an XML string into a XML-RPC native value
DetailsgenerateXml(
)
:
voidGenerate XML code that represent a native XML/RPC value
DetailsgetGenerator(
)
:
Zend_XmlRpc_Generator_GeneratorAbstractGet XML generator instance
DetailsgetType(
)
:
stringGet the native XML-RPC type (the type is one of the Zend_XmlRpc_Value::XMLRPC_TYPE_* constants)
DetailsgetValue(
)
:
mixedReturn the value of this object, convert the XML-RPC native value into a PHP variable
DetailsgetXmlRpcValue(
mixed $value, Zend_XmlRpc_Value::constant $type
=
self
)
:
Zend_XmlRpc_ValueCreates a Zend_XmlRpc_Value* object, representing a native XML-RPC value A XmlRpcValue object can be created in 3 ways: 1. Autodetecting the native type out of a PHP variable (if $type is not set or equal to Zend_XmlRpc_Value::AUTO_DETECT_TYPE) 2. By specifing the native type ($type is one of the Zend_XmlRpc_Value::XMLRPC_TYPE_* constants) 3. From a XML string ($type is set to Zend_XmlRpc_Value::XML_STRING)
By default the value type is autodetected according to it's PHP type
DetailssaveXml(
)
:
stringReturn the XML code that represent a native MXL-RPC value
DetailssetEncoding(
string $encoding
)
:
voidChanges the encoding of the generator
DetailssetGenerator(
Zend_XmlRpc_Generator_GeneratorAbstract $generator
)
:
voidSets XML generator instance
Details