1 | <?php |
||
12 | trait CommonsTrait |
||
13 | { |
||
14 | /** |
||
15 | * @var \DOMDocument|null |
||
16 | */ |
||
17 | private static $xml = null; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private static $encoding = 'UTF-8'; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private static $prefixAttributes = '@'; |
||
28 | |||
29 | /** |
||
30 | * Initialize the root XML node [optional] |
||
31 | * |
||
32 | * @param $version |
||
33 | * @param $encoding |
||
34 | * @param $formatOutput |
||
35 | */ |
||
36 | public static function init($version = '1.0', $encoding = 'UTF-8', $formatOutput = true) |
||
42 | |||
43 | /* |
||
44 | * Get the root XML node, if there isn't one, create it. |
||
45 | */ |
||
46 | private static function getXMLRoot() |
||
54 | } |