1 | <?php |
||
24 | class MyXML |
||
25 | { |
||
26 | /** |
||
27 | * @var \SimpleXMLElement |
||
28 | */ |
||
29 | private $oXml; |
||
30 | |||
31 | /** |
||
32 | * ExtendXML constructor. |
||
33 | * |
||
34 | * @param string $nodeRootName |
||
35 | */ |
||
36 | public function __construct(string $nodeRootName) |
||
40 | |||
41 | /** |
||
42 | * @param \SimpleXMLElement $new |
||
43 | * @param string|null $namespace |
||
44 | * @param \SimpleXMLElement $root |
||
45 | */ |
||
46 | public function insertChild(\SimpleXMLElement $new, string $namespace = null, \SimpleXMLElement $root = null) |
||
68 | |||
69 | /** |
||
70 | * @return \SimpleXMLElement |
||
71 | */ |
||
72 | public function asObject() |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function asText() |
||
89 | |||
90 | /** |
||
91 | * @param int $iWidth |
||
92 | * @param int $iHeight |
||
93 | * |
||
94 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
95 | */ |
||
96 | public function setSize(int $iWidth, int $iHeight) |
||
103 | |||
104 | /** |
||
105 | * @param int $iWidth |
||
106 | * |
||
107 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
108 | */ |
||
109 | public function setWidth(int $iWidth) |
||
115 | |||
116 | /** |
||
117 | * @param int $iHeight |
||
118 | * |
||
119 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
120 | */ |
||
121 | public function setHeight(int $iHeight) |
||
127 | |||
128 | /** |
||
129 | * @param string $sColor |
||
130 | * |
||
131 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
132 | */ |
||
133 | public function setColorBg(string $sColor) |
||
139 | |||
140 | /** |
||
141 | * @param string $sColor |
||
142 | * |
||
143 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
144 | */ |
||
145 | public function setColorBorder(string $sColor) |
||
151 | |||
152 | /** |
||
153 | * @param string $sName |
||
154 | * |
||
155 | * @return \mrcnpdlk\Grandstream\XMLApp\MyXML |
||
156 | */ |
||
157 | public function setName(string $sName) |
||
163 | } |