1 | <?php |
||
18 | class MyXML |
||
19 | { |
||
20 | /** |
||
21 | * @var \SimpleXMLElement |
||
22 | */ |
||
23 | private $oXml; |
||
24 | |||
25 | /** |
||
26 | * ExtendXML constructor. |
||
27 | * |
||
28 | * @param string $nodeRootName |
||
29 | */ |
||
30 | 4 | public function __construct(string $nodeRootName) |
|
34 | |||
35 | /** |
||
36 | * @param \SimpleXMLElement $new |
||
37 | * @param string|null $namespace |
||
38 | * @param \SimpleXMLElement $root |
||
39 | */ |
||
40 | 3 | public function insertChild(\SimpleXMLElement $new, string $namespace = null, \SimpleXMLElement $root = null) |
|
62 | |||
63 | /** |
||
64 | * @return \SimpleXMLElement |
||
65 | */ |
||
66 | 4 | public function asObject() |
|
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | 4 | public function asText() |
|
83 | |||
84 | /** |
||
85 | * @param int $iWidth |
||
86 | * @param int $iHeight |
||
87 | * |
||
88 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
89 | */ |
||
90 | public function setSize(int $iWidth, int $iHeight) |
||
97 | |||
98 | /** |
||
99 | * @param int $iWidth |
||
100 | * |
||
101 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
102 | */ |
||
103 | 1 | public function setWidth(int $iWidth) |
|
109 | |||
110 | /** |
||
111 | * @param int $iHeight |
||
112 | * |
||
113 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
114 | */ |
||
115 | public function setHeight(int $iHeight) |
||
121 | |||
122 | /** |
||
123 | * @param string $sColor |
||
124 | * |
||
125 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
126 | */ |
||
127 | 1 | public function setColorBg(string $sColor) |
|
133 | |||
134 | /** |
||
135 | * @param string $sColor |
||
136 | * |
||
137 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
138 | */ |
||
139 | 1 | public function setColorBorder(string $sColor) |
|
145 | |||
146 | /** |
||
147 | * @param string $sColor |
||
148 | * |
||
149 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
150 | */ |
||
151 | 1 | public function setColor(string $sColor) |
|
157 | |||
158 | /** |
||
159 | * @param string $sName |
||
160 | * |
||
161 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
162 | */ |
||
163 | public function setName(string $sName) |
||
169 | } |
||
170 |