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 public static function toUri(string $uri): static {} 99 100 /** 101 * @tentative-return-type 102 * @alias xmlwriter_open_memory 103 * @no-verify Behaviour differs from the aliased function 104 */ 105 public function openMemory(): bool {} 106 107 public static function toMemory(): static {} 108 109 /** @param resource $stream */ 110 public static function toStream($stream): static {} 111 112 /** 113 * @tentative-return-type 114 * @alias xmlwriter_set_indent 115 */ 116 public function setIndent(bool $enable): bool {} 117 118 /** 119 * @tentative-return-type 120 * @alias xmlwriter_set_indent_string 121 */ 122 public function setIndentString(string $indentation): bool {} 123 124 /** 125 * @tentative-return-type 126 * @alias xmlwriter_start_comment 127 */ 128 public function startComment(): bool {} 129 130 /** 131 * @tentative-return-type 132 * @alias xmlwriter_end_comment 133 */ 134 public function endComment(): bool {} 135 136 /** 137 * @tentative-return-type 138 * @alias xmlwriter_start_attribute 139 */ 140 public function startAttribute(string $name): bool {} 141 142 /** 143 * @tentative-return-type 144 * @alias xmlwriter_end_attribute 145 */ 146 public function endAttribute(): bool {} 147 148 /** 149 * @tentative-return-type 150 * @alias xmlwriter_write_attribute 151 */ 152 public function writeAttribute(string $name, string $value): bool {} 153 154 /** 155 * @tentative-return-type 156 * @alias xmlwriter_start_attribute_ns 157 */ 158 public function startAttributeNs(?string $prefix, string $name, ?string $namespace): bool {} 159 160 /** 161 * @tentative-return-type 162 * @alias xmlwriter_write_attribute_ns 163 */ 164 public function writeAttributeNs(?string $prefix, string $name, ?string $namespace, string $value): bool {} 165 166 /** 167 * @tentative-return-type 168 * @alias xmlwriter_start_element 169 */ 170 public function startElement(string $name): bool {} 171 172 /** 173 * @tentative-return-type 174 * @alias xmlwriter_end_element 175 */ 176 public function endElement(): bool {} 177 178 /** 179 * @tentative-return-type 180 * @alias xmlwriter_full_end_element 181 */ 182 public function fullEndElement(): bool {} 183 184 /** 185 * @tentative-return-type 186 * @alias xmlwriter_start_element_ns 187 */ 188 public function startElementNs(?string $prefix, string $name, ?string $namespace): bool {} 189 190 /** 191 * @tentative-return-type 192 * @alias xmlwriter_write_element 193 */ 194 public function writeElement(string $name, ?string $content = null): bool {} 195 196 /** 197 * @tentative-return-type 198 * @alias xmlwriter_write_element_ns 199 */ 200 public function writeElementNs(?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {} 201 202 /** 203 * @tentative-return-type 204 * @alias xmlwriter_start_pi 205 */ 206 public function startPi(string $target): bool {} 207 208 /** 209 * @tentative-return-type 210 * @alias xmlwriter_end_pi 211 */ 212 public function endPi(): bool {} 213 214 /** 215 * @tentative-return-type 216 * @alias xmlwriter_write_pi 217 */ 218 public function writePi(string $target, string $content): bool {} 219 220 /** 221 * @tentative-return-type 222 * @alias xmlwriter_start_cdata 223 */ 224 public function startCdata(): bool {} 225 226 /** 227 * @tentative-return-type 228 * @alias xmlwriter_end_cdata 229 * */ 230 public function endCdata(): bool {} 231 232 /** 233 * @tentative-return-type 234 * @alias xmlwriter_write_cdata 235 */ 236 public function writeCdata(string $content): bool {} 237 238 /** 239 * @tentative-return-type 240 * @alias xmlwriter_text 241 */ 242 public function text(string $content): bool {} 243 244 /** 245 * @tentative-return-type 246 * @alias xmlwriter_write_raw 247 */ 248 public function writeRaw(string $content): bool {} 249 250 /** 251 * @tentative-return-type 252 * @alias xmlwriter_start_document 253 */ 254 public function startDocument(?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {} 255 256 /** 257 * @tentative-return-type 258 * @alias xmlwriter_end_document 259 */ 260 public function endDocument(): bool {} 261 262 /** 263 * @tentative-return-type 264 * @alias xmlwriter_write_comment 265 */ 266 public function writeComment(string $content): bool {} 267 268 /** 269 * @tentative-return-type 270 * @alias xmlwriter_start_dtd 271 */ 272 public function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {} 273 274 /** 275 * @tentative-return-type 276 * @alias xmlwriter_end_dtd 277 */ 278 public function endDtd(): bool {} 279 280 /** 281 * @tentative-return-type 282 * @alias xmlwriter_write_dtd 283 */ 284 public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {} 285 286 /** 287 * @tentative-return-type 288 * @alias xmlwriter_start_dtd_element 289 */ 290 public function startDtdElement(string $qualifiedName): bool {} 291 292 /** 293 * @tentative-return-type 294 * @alias xmlwriter_end_dtd_element 295 */ 296 public function endDtdElement(): bool {} 297 298 /** 299 * @tentative-return-type 300 * @alias xmlwriter_write_dtd_element 301 */ 302 public function writeDtdElement(string $name, string $content): bool {} 303 304 /** 305 * @tentative-return-type 306 * @alias xmlwriter_start_dtd_attlist 307 */ 308 public function startDtdAttlist(string $name): bool {} 309 310 /** 311 * @tentative-return-type 312 * @alias xmlwriter_end_dtd_attlist 313 */ 314 public function endDtdAttlist(): bool {} 315 316 /** 317 * @tentative-return-type 318 * @alias xmlwriter_write_dtd_attlist 319 */ 320 public function writeDtdAttlist(string $name, string $content): bool {} 321 322 /** 323 * @tentative-return-type 324 * @alias xmlwriter_start_dtd_entity 325 */ 326 public function startDtdEntity(string $name, bool $isParam): bool {} 327 328 /** 329 * @tentative-return-type 330 * @alias xmlwriter_end_dtd_entity 331 */ 332 public function endDtdEntity(): bool {} 333 334 /** 335 * @tentative-return-type 336 * @alias xmlwriter_write_dtd_entity 337 */ 338 public function writeDtdEntity(string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {} 339 340 /** 341 * @tentative-return-type 342 * @alias xmlwriter_output_memory 343 */ 344 public function outputMemory(bool $flush = true): string {} 345 346 /** 347 * @tentative-return-type 348 * @alias xmlwriter_flush 349 */ 350 public function flush(bool $empty = true): string|int {} 351} 352