RGXML
Class RGXML
Handles the formatting and output of XML content
Source: xml.php:11
Details
- Kind:
class - Namespace:
(global)
Methods
| Method | Description |
|---|---|
__construct() | RGXML constructor. |
serialize() | Serializes an array into an XML string |
unserialize() | Unserializes XML into an object to be used in PHP |
Method Reference
__construct()
public function __construct( $options=[] )
RGXML constructor.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$options | array | [] |
Source: xml.php:26
serialize()
public function serialize( $parent_node_name, $data, $path="" )
Serializes an array into an XML string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$parent_node_name | string | The parent XML node name | |
$data | array | The data to serialize | |
$path | string | "" | Optional. The path inside the parent node. |
Returns
string— The serialized XML string
Source: xml.php:58
unserialize()
public function unserialize( $xml_string )
Unserializes XML into an object to be used in PHP
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$xml_string | string | The XML string to be unserialized |
Returns
array— The unserialized array
Source: xml.php:135