Detailed Description
Definition at line 37 of file Value.php.
Member Function Documentation
Extract XML/RPC type and value from SimpleXMLElement object
- Parameters:
-
| SimpleXMLElement | $xml | |
| string | &$type | Type bind variable |
| string | &$value | Value bind variable |
- Returns:
- void
Definition at line 454 of file Value.php.
Transform a PHP native variable into a XML-RPC native value
- Parameters:
-
| mixed | $value | The PHP variable for convertion |
- Returns:
- Zend_XmlRpc_Value
Definition at line 264 of file Value.php.
- Parameters:
-
- Returns:
- void
Definition at line 480 of file Value.php.
Transform an XML string into a XML-RPC native value
- Parameters:
-
| string | SimpleXMLElement | $xml | A SimpleXMLElement object represent the XML string It can be also a valid XML string for convertion |
- Returns:
- Zend_XmlRpc_Value
Definition at line 334 of file Value.php.
Generate XML code that represent a native XML/RPC value
- Returns:
- void
Definition at line 171 of file Value.php.
Get the native XML-RPC type (the type is one of the Zend_XmlRpc_Value::XMLRPC_TYPE_* constants)
- Returns:
- string
Definition at line 95 of file Value.php.
| static getXmlRpcValue |
( |
$ |
value, |
|
|
$ |
type = self::AUTO_DETECT_TYPE |
|
) |
| [static] |
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)
By default the value type is autodetected according to it's PHP type
- Parameters:
-
| mixed | $value | |
| Zend_XmlRpc_Value::constant | $type |
- Returns:
- Zend_XmlRpc_Value
Definition at line 192 of file Value.php.
Return the XML code that represent a native MXL-RPC value
- Returns:
- string
Definition at line 157 of file Value.php.
Changes the encoding of the generator
- Parameters:
-
- Returns:
- void
Definition at line 137 of file Value.php.
Sets XML generator instance
- Parameters:
-
- Returns:
- void
Definition at line 126 of file Value.php.
Field Documentation
$_generator [static, protected] |
The native XML-RPC type of this object One of the XMLRPC_TYPE_* constants
Definition at line 51 of file Value.php.
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
Definition at line 45 of file Value.php.
XML code representation of this object (will be calculated only once)
Definition at line 56 of file Value.php.
Specify that the XML-RPC native type will be auto detected from a PHP variable type
Definition at line 66 of file Value.php.
Specify that the XML-RPC value will be parsed out from a given XML code
Definition at line 71 of file Value.php.
All the XML-RPC native types
Definition at line 76 of file Value.php.
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/zend/Zend/XmlRpc/Value.php