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

_createSimpleXMLElement(
$xml
)
:
void
Name | Type | Description |
---|---|---|
$xml |

_extractTypeAndValue(
\SimpleXMLElement $xml, string $type, string $value
)
:
void
Extract XML/RPC type and value from SimpleXMLElement object
Inherited from: \Zend_XmlRpc_Value::_extractTypeAndValue()Name | Type | Description |
---|---|---|
$xml | \SimpleXMLElement | |
$type | string | &$type Type bind variable |
$value | string | &$value Value bind variable |

_generateXml(
)
:
void
Generate the XML code that represent a scalar native MXL-RPC value
Inherited from: \Zend_XmlRpc_Value_Scalar::_generateXml()
_phpVarToNativeXmlRpc(
mixed $value
)
:
\Zend_XmlRpc_Value
Transform a PHP native variable into a XML-RPC native value
Inherited from: \Zend_XmlRpc_Value::_phpVarToNativeXmlRpc()Name | Type | Description |
---|---|---|
$value | mixed | The PHP variable for convertion |
Type | Description |
---|---|
\Zend_XmlRpc_Value |

_setXML(
string $xml
)
:
void
Name | Type | Description |
---|---|---|
$xml | string |

_xmlStringToNativeXmlRpc(
string|\SimpleXMLElement $xml
)
:
\Zend_XmlRpc_Value
Transform an XML string into a XML-RPC native value
Inherited from: \Zend_XmlRpc_Value::_xmlStringToNativeXmlRpc()Name | Type | Description |
---|---|---|
$xml | string|\SimpleXMLElement | A SimpleXMLElement object represent the XML string It can be also a valid XML string for convertion |
Type | Description |
---|---|
\Zend_XmlRpc_Value |

generateXml(
)
:
void
Generate XML code that represent a native XML/RPC value
Inherited from: \Zend_XmlRpc_Value::generateXml()
getGenerator(
)
:
\Zend_XmlRpc_Generator_GeneratorAbstract
Type | Description |
---|---|
\Zend_XmlRpc_Generator_GeneratorAbstract |

getType(
)
:
string
Get the native XML-RPC type (the type is one of the Zend_XmlRpc_Value::XMLRPC_TYPE_* constants)
Inherited from: \Zend_XmlRpc_Value::getType()Type | Description |
---|---|
string |

getValue(
)
:
null
Return the value of this object, convert the XML-RPC native nill value into a PHP NULL
Type | Description |
---|---|
null |

getXmlRpcTypeByValue(
mixed $value
)
:
string
Get XML-RPC type for a PHP native variable
Inherited from: \Zend_XmlRpc_Value::getXmlRpcTypeByValue()Name | Type | Description |
---|---|---|
$value | mixed |
Type | Description |
---|---|
string |

getXmlRpcValue(
mixed $value, \Zend_XmlRpc_Value::constant $type
=
self
)
:
\Zend_XmlRpc_Value
Creates 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)
Inherited from: \Zend_XmlRpc_Value::getXmlRpcValue()By default the value type is autodetected according to it's PHP type
Name | Type | Description |
---|---|---|
$value | mixed | |
$type | \Zend_XmlRpc_Value::constant |
Type | Description |
---|---|
\Zend_XmlRpc_Value |

saveXml(
)
:
string
Return the XML code that represent a native MXL-RPC value
Inherited from: \Zend_XmlRpc_Value::saveXml()Type | Description |
---|---|
string |

setGenerator(
\Zend_XmlRpc_Generator_GeneratorAbstract $generator
)
:
void
Name | Type | Description |
---|---|---|
$generator | \Zend_XmlRpc_Generator_GeneratorAbstract |