1 | <?php |
||
14 | class XmlSerializer extends HierarchicalSerializer |
||
15 | { |
||
16 | /** |
||
17 | * @var string the XML version |
||
18 | */ |
||
19 | public $version = '1.0'; |
||
20 | /** |
||
21 | * @var string the XML encoding. |
||
22 | */ |
||
23 | public $encoding = 'UTF-8'; |
||
24 | /** |
||
25 | * @var string the name of the root element. |
||
26 | */ |
||
27 | public $rootTag = 'items'; |
||
28 | /** |
||
29 | * @var string the name of the elements that represent the array elements with numeric keys. |
||
30 | */ |
||
31 | public $itemTag = 'item'; |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | 1 | public function formatData($data) |
|
50 | |||
51 | /** |
||
52 | * @param \DOMNode $element |
||
53 | * @param mixed $data |
||
54 | */ |
||
55 | 1 | protected function buildXml($element, $data) |
|
71 | } |
||
72 |