1<?php 2 3/** @generate-class-entries */ 4 5function xmlwriter_open_uri(string $uri): XMLWriter|false {} 6 7function xmlwriter_open_memory(): XMLWriter|false {} 8 9function xmlwriter_set_indent(XMLWriter $writer, bool $enable): bool {} 10 11function xmlwriter_set_indent_string(XMLWriter $writer, string $indentation): bool {} 12 13function xmlwriter_start_comment(XMLWriter $writer): bool {} 14 15function xmlwriter_end_comment(XMLWriter $writer): bool {} 16 17function xmlwriter_start_attribute(XMLWriter $writer, string $name): bool {} 18 19function xmlwriter_end_attribute(XMLWriter $writer): bool {} 20 21function xmlwriter_write_attribute(XMLWriter $writer, string $name, string $value): bool {} 22 23function xmlwriter_start_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace): bool {} 24 25function xmlwriter_write_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace, string $value): bool {} 26 27function xmlwriter_start_element(XMLWriter $writer, string $name): bool {} 28 29function xmlwriter_end_element(XMLWriter $writer): bool {} 30 31function xmlwriter_full_end_element(XMLWriter $writer): bool {} 32 33function xmlwriter_start_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace): bool {} 34 35function xmlwriter_write_element(XMLWriter $writer, string $name, ?string $content = null): bool {} 36 37function xmlwriter_write_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {} 38 39function xmlwriter_start_pi(XMLWriter $writer, string $target): bool {} 40 41function xmlwriter_end_pi(XMLWriter $writer): bool {} 42 43function xmlwriter_write_pi(XMLWriter $writer, string $target, string $content): bool {} 44 45function xmlwriter_start_cdata(XMLWriter $writer): bool {} 46 47function xmlwriter_end_cdata(XMLWriter $writer): bool {} 48 49function xmlwriter_write_cdata(XMLWriter $writer, string $content): bool {} 50 51function xmlwriter_text(XMLWriter $writer, string $content): bool {} 52 53function xmlwriter_write_raw(XMLWriter $writer, string $content): bool {} 54 55function xmlwriter_start_document(XMLWriter $writer, ?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {} 56 57function xmlwriter_end_document(XMLWriter $writer): bool {} 58 59function xmlwriter_write_comment(XMLWriter $writer, string $content): bool {} 60 61function xmlwriter_start_dtd(XMLWriter $writer, string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {} 62 63function xmlwriter_end_dtd(XMLWriter $writer): bool {} 64 65function xmlwriter_write_dtd(XMLWriter $writer, string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {} 66 67function xmlwriter_start_dtd_element(XMLWriter $writer, string $qualifiedName): bool {} 68 69function xmlwriter_end_dtd_element(XMLWriter $writer): bool {} 70 71function xmlwriter_write_dtd_element(XMLWriter $writer, string $name, string $content): bool {} 72 73function xmlwriter_start_dtd_attlist(XMLWriter $writer, string $name): bool {} 74 75function xmlwriter_end_dtd_attlist(XMLWriter $writer): bool {} 76 77function xmlwriter_write_dtd_attlist(XMLWriter $writer, string $name, string $content): bool {} 78 79function xmlwriter_start_dtd_entity(XMLWriter $writer, string $name, bool $isParam): bool {} 80 81function xmlwriter_end_dtd_entity(XMLWriter $writer): bool {} 82 83function xmlwriter_write_dtd_entity(XMLWriter $writer, string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {} 84 85function xmlwriter_output_memory(XMLWriter $writer, bool $flush = true): string {} 86 87function xmlwriter_flush(XMLWriter $writer, bool $empty = true): string|int {} 88 89class XMLWriter 90{ 91 /** 92 * @tentative-return-type 93 * @alias xmlwriter_open_uri 94 * @no-verify Behaviour differs from the aliased function 95 */ 96 public function openUri(string $uri): bool {} 97 98 /** 99 * @tentative-return-type 100 * @alias xmlwriter_open_memory 101 * @no-verify Behaviour differs from the aliased function 102 */ 103 public function openMemory(): bool {} 104 105 /** 106 * @tentative-return-type 107 * @alias xmlwriter_set_indent 108 */ 109 public function setIndent(bool $enable): bool {} 110 111 /** 112 * @tentative-return-type 113 * @alias xmlwriter_set_indent_string 114 */ 115 public function setIndentString(string $indentation): bool {} 116 117 /** 118 * @tentative-return-type 119 * @alias xmlwriter_start_comment 120 */ 121 public function startComment(): bool {} 122 123 /** 124 * @tentative-return-type 125 * @alias xmlwriter_end_comment 126 */ 127 public function endComment(): bool {} 128 129 /** 130 * @tentative-return-type 131 * @alias xmlwriter_start_attribute 132 */ 133 public function startAttribute(string $name): bool {} 134 135 /** 136 * @tentative-return-type 137 * @alias xmlwriter_end_attribute 138 */ 139 public function endAttribute(): bool {} 140 141 /** 142 * @tentative-return-type 143 * @alias xmlwriter_write_attribute 144 */ 145 public function writeAttribute(string $name, string $value): bool {} 146 147 /** 148 * @tentative-return-type 149 * @alias xmlwriter_start_attribute_ns 150 */ 151 public function startAttributeNs(?string $prefix, string $name, ?string $namespace): bool {} 152 153 /** 154 * @tentative-return-type 155 * @alias xmlwriter_write_attribute_ns 156 */ 157 public function writeAttributeNs(?string $prefix, string $name, ?string $namespace, string $value): bool {} 158 159 /** 160 * @tentative-return-type 161 * @alias xmlwriter_start_element 162 */ 163 public function startElement(string $name): bool {} 164 165 /** 166 * @tentative-return-type 167 * @alias xmlwriter_end_element 168 */ 169 public function endElement(): bool {} 170 171 /** 172 * @tentative-return-type 173 * @alias xmlwriter_full_end_element 174 */ 175 public function fullEndElement(): bool {} 176 177 /** 178 * @tentative-return-type 179 * @alias xmlwriter_start_element_ns 180 */ 181 public function startElementNs(?string $prefix, string $name, ?string $namespace): bool {} 182 183 /** 184 * @tentative-return-type 185 * @alias xmlwriter_write_element 186 */ 187 public function writeElement(string $name, ?string $content = null): bool {} 188 189 /** 190 * @tentative-return-type 191 * @alias xmlwriter_write_element_ns 192 */ 193 public function writeElementNs(?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {} 194 195 /** 196 * @tentative-return-type 197 * @alias xmlwriter_start_pi 198 */ 199 public function startPi(string $target): bool {} 200 201 /** 202 * @tentative-return-type 203 * @alias xmlwriter_end_pi 204 */ 205 public function endPi(): bool {} 206 207 /** 208 * @tentative-return-type 209 * @alias xmlwriter_write_pi 210 */ 211 public function writePi(string $target, string $content): bool {} 212 213 /** 214 * @tentative-return-type 215 * @alias xmlwriter_start_cdata 216 */ 217 public function startCdata(): bool {} 218 219 /** 220 * @tentative-return-type 221 * @alias xmlwriter_end_cdata 222 * */ 223 public function endCdata(): bool {} 224 225 /** 226 * @tentative-return-type 227 * @alias xmlwriter_write_cdata 228 */ 229 public function writeCdata(string $content): bool {} 230 231 /** 232 * @tentative-return-type 233 * @alias xmlwriter_text 234 */ 235 public function text(string $content): bool {} 236 237 /** 238 * @tentative-return-type 239 * @alias xmlwriter_write_raw 240 */ 241 public function writeRaw(string $content): bool {} 242 243 /** 244 * @tentative-return-type 245 * @alias xmlwriter_start_document 246 */ 247 public function startDocument(?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {} 248 249 /** 250 * @tentative-return-type 251 * @alias xmlwriter_end_document 252 */ 253 public function endDocument(): bool {} 254 255 /** 256 * @tentative-return-type 257 * @alias xmlwriter_write_comment 258 */ 259 public function writeComment(string $content): bool {} 260 261 /** 262 * @tentative-return-type 263 * @alias xmlwriter_start_dtd 264 */ 265 public function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {} 266 267 /** 268 * @tentative-return-type 269 * @alias xmlwriter_end_dtd 270 */ 271 public function endDtd(): bool {} 272 273 /** 274 * @tentative-return-type 275 * @alias xmlwriter_write_dtd 276 */ 277 public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {} 278 279 /** 280 * @tentative-return-type 281 * @alias xmlwriter_start_dtd_element 282 */ 283 public function startDtdElement(string $qualifiedName): bool {} 284 285 /** 286 * @tentative-return-type 287 * @alias xmlwriter_end_dtd_element 288 */ 289 public function endDtdElement(): bool {} 290 291 /** 292 * @tentative-return-type 293 * @alias xmlwriter_write_dtd_element 294 */ 295 public function writeDtdElement(string $name, string $content): bool {} 296 297 /** 298 * @tentative-return-type 299 * @alias xmlwriter_start_dtd_attlist 300 */ 301 public function startDtdAttlist(string $name): bool {} 302 303 /** 304 * @tentative-return-type 305 * @alias xmlwriter_end_dtd_attlist 306 */ 307 public function endDtdAttlist(): bool {} 308 309 /** 310 * @tentative-return-type 311 * @alias xmlwriter_write_dtd_attlist 312 */ 313 public function writeDtdAttlist(string $name, string $content): bool {} 314 315 /** 316 * @tentative-return-type 317 * @alias xmlwriter_start_dtd_entity 318 */ 319 public function startDtdEntity(string $name, bool $isParam): bool {} 320 321 /** 322 * @tentative-return-type 323 * @alias xmlwriter_end_dtd_entity 324 */ 325 public function endDtdEntity(): bool {} 326 327 /** 328 * @tentative-return-type 329 * @alias xmlwriter_write_dtd_entity 330 */ 331 public function writeDtdEntity(string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {} 332 333 /** 334 * @tentative-return-type 335 * @alias xmlwriter_output_memory 336 */ 337 public function outputMemory(bool $flush = true): string {} 338 339 /** 340 * @tentative-return-type 341 * @alias xmlwriter_flush 342 */ 343 public function flush(bool $empty = true): string|int {} 344} 345