1 | <?php |
||
16 | class XmlWriter extends AbstractWriter |
||
17 | { |
||
18 | /** |
||
19 | * @var string Content-Type value for the header |
||
20 | */ |
||
21 | protected static $headerContentType = 'text/xml'; |
||
22 | /** |
||
23 | * @var string the root element of the data to be exported |
||
24 | */ |
||
25 | protected $rootElement = 'data'; |
||
26 | /** |
||
27 | * @var string the child element of each row data |
||
28 | */ |
||
29 | protected $childElement = 'row'; |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | protected function openWriter() |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | protected function addRowToWriter(array $dataRow, $style) |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | protected function closeWriter() |
||
58 | |||
59 | /** |
||
60 | * @param string $name |
||
61 | * @param string $value |
||
62 | */ |
||
63 | protected function generateNode($name, $value) |
||
73 | } |
||
74 |