Represent a native XML-RPC value entity, used as parameters for the methods called by the ZendXmlRpcClient object and as the return value for those calls.
This object as a very important static function ZendXmlRpcValue::getXmlRpcValue, this function acts likes a factory for the ZendXmlRpcValue objects
Using this function, users/ZendXmlRpcClient object can create the ZendXmlRpcValue objects from PHP variables, XML string or by specifying the exact XML-RPC natvie type
Get the native XML-RPC type (the type is one of the Value::XMLRPC_TYPE_* constants)
| Return type: | string |
|---|
Get XML generator instance
| Return type: | ZendXmlRpcGeneratorGeneratorInterface |
|---|
Sets XML generator instance
| Parameters: | null|GeneratorGeneratorInterface – |
|---|---|
| Return type: | void |
Changes the encoding of the generator
| Parameters: | string – |
|---|---|
| Return type: | void |
Return the value of this object, convert the XML-RPC native value into a PHP variable
| Return type: | mixed |
|---|
Return the XML code that represent a native MXL-RPC value
| Return type: | string |
|---|
Generate XML code that represent a native XML/RPC value
| Return type: | void |
|---|
Creates a 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 Value::AUTO_DETECT_TYPE)
By default the value type is autodetected according to it’s PHP type
| Parameters: | mixed – |
|---|
:param ZendXmlRpcValue::constant:
| Throws ExceptionValueException: | |
|---|---|
| Return type: | AbstractValue |
Get XML-RPC type for a PHP native variable
| Parameters: | mixed – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | string |
Transform a PHP native variable into a XML-RPC native value
| Parameters: | mixed – The PHP variable for conversion |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractValue |
| Static : | |
Transform an XML string into a XML-RPC native value
| Parameters: | string|SimpleXMLElement – A SimpleXMLElement object represent the XML string |
|---|
It can be also a valid XML string for conversion
throws ExceptionValueException: rtype: ZendXmlRpcAbstractValue static:
Specify that the XML-RPC native type will be auto detected from a PHP variable type
Specify that the XML-RPC value will be parsed out from a given XML code
All the XML-RPC native types