1 | <?php |
||
13 | class DOMElementWrapper implements XMLDocumentInterface |
||
14 | { |
||
15 | use ElementTrait; |
||
16 | |||
17 | /** |
||
18 | * @var DOMElement |
||
19 | */ |
||
20 | private $element; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * DOMElementWrapper constructor. |
||
25 | * |
||
26 | * @param DOMElement $element |
||
27 | */ |
||
28 | 121 | public function __construct(DOMElement $element) |
|
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | 121 | public function setAttribute($name, $value = null) |
|
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | 88 | public function getAttribute($name) |
|
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | 121 | public function setAttributeNS($namespaceURI, $qualifiedName, $value) |
|
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | 69 | public function getAttributeNS($namespaceURI, $localName) |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 58 | public function appendChild(XMLDocumentInterface $newNode) |
|
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | public function createElement($name, $value = null) |
||
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | public function createElementNS($namespaceURI, $qualifiedName, $value = null) |
||
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | public function saveHTML() |
||
96 | |||
97 | /** |
||
98 | * @inheritdoc |
||
99 | */ |
||
100 | public function saveXML($formatOutput) |
||
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | public static function isLoaded() |
||
112 | |||
113 | /** |
||
114 | * @inheritdoc |
||
115 | */ |
||
116 | 121 | public function getElement() |
|
120 | |||
121 | /** |
||
122 | * @inheritdoc |
||
123 | */ |
||
124 | 1 | public function setNodeValue($value) |
|
128 | |||
129 | /** |
||
130 | * @inheritdoc |
||
131 | */ |
||
132 | 1 | public function getNodeValue() |
|
136 | |||
137 | /** |
||
138 | * @inheritdoc |
||
139 | */ |
||
140 | 1 | public function removeNode(XMLDocumentInterface $child) |
|
144 | } |