123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- <?php
- /** @generate-class-entries */
- function xmlwriter_open_uri(string $uri): XMLWriter|false {}
- function xmlwriter_open_memory(): XMLWriter|false {}
- function xmlwriter_set_indent(XMLWriter $writer, bool $enable): bool {}
- function xmlwriter_set_indent_string(XMLWriter $writer, string $indentation): bool {}
- function xmlwriter_start_comment(XMLWriter $writer): bool {}
- function xmlwriter_end_comment(XMLWriter $writer): bool {}
- function xmlwriter_start_attribute(XMLWriter $writer, string $name): bool {}
- function xmlwriter_end_attribute(XMLWriter $writer): bool {}
- function xmlwriter_write_attribute(XMLWriter $writer, string $name, string $value): bool {}
- function xmlwriter_start_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace): bool {}
- function xmlwriter_write_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace, string $value): bool {}
- function xmlwriter_start_element(XMLWriter $writer, string $name): bool {}
- function xmlwriter_end_element(XMLWriter $writer): bool {}
- function xmlwriter_full_end_element(XMLWriter $writer): bool {}
- function xmlwriter_start_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace): bool {}
- function xmlwriter_write_element(XMLWriter $writer, string $name, ?string $content = null): bool {}
- function xmlwriter_write_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {}
- function xmlwriter_start_pi(XMLWriter $writer, string $target): bool {}
- function xmlwriter_end_pi(XMLWriter $writer): bool {}
- function xmlwriter_write_pi(XMLWriter $writer, string $target, string $content): bool {}
- function xmlwriter_start_cdata(XMLWriter $writer): bool {}
- function xmlwriter_end_cdata(XMLWriter $writer): bool {}
- function xmlwriter_write_cdata(XMLWriter $writer, string $content): bool {}
- function xmlwriter_text(XMLWriter $writer, string $content): bool {}
- function xmlwriter_write_raw(XMLWriter $writer, string $content): bool {}
- function xmlwriter_start_document(XMLWriter $writer, ?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
- function xmlwriter_end_document(XMLWriter $writer): bool {}
- function xmlwriter_write_comment(XMLWriter $writer, string $content): bool {}
- function xmlwriter_start_dtd(XMLWriter $writer, string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
- function xmlwriter_end_dtd(XMLWriter $writer): bool {}
- function xmlwriter_write_dtd(XMLWriter $writer, string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {}
- function xmlwriter_start_dtd_element(XMLWriter $writer, string $qualifiedName): bool {}
- function xmlwriter_end_dtd_element(XMLWriter $writer): bool {}
- function xmlwriter_write_dtd_element(XMLWriter $writer, string $name, string $content): bool {}
- function xmlwriter_start_dtd_attlist(XMLWriter $writer, string $name): bool {}
- function xmlwriter_end_dtd_attlist(XMLWriter $writer): bool {}
- function xmlwriter_write_dtd_attlist(XMLWriter $writer, string $name, string $content): bool {}
- function xmlwriter_start_dtd_entity(XMLWriter $writer, string $name, bool $isParam): bool {}
- function xmlwriter_end_dtd_entity(XMLWriter $writer): bool {}
- function xmlwriter_write_dtd_entity(XMLWriter $writer, string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {}
- function xmlwriter_output_memory(XMLWriter $writer, bool $flush = true): string {}
- function xmlwriter_flush(XMLWriter $writer, bool $empty = true): string|int {}
- class XMLWriter
- {
- /**
- * @tentative-return-type
- * @alias xmlwriter_open_uri
- * @no-verify Behaviour differs from the aliased function
- */
- public function openUri(string $uri): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_open_memory
- * @no-verify Behaviour differs from the aliased function
- */
- public function openMemory(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_set_indent
- */
- public function setIndent(bool $enable): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_set_indent_string
- */
- public function setIndentString(string $indentation): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_comment
- */
- public function startComment(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_comment
- */
- public function endComment(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_attribute
- */
- public function startAttribute(string $name): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_attribute
- */
- public function endAttribute(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_attribute
- */
- public function writeAttribute(string $name, string $value): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_attribute_ns
- */
- public function startAttributeNs(?string $prefix, string $name, ?string $namespace): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_attribute_ns
- */
- public function writeAttributeNs(?string $prefix, string $name, ?string $namespace, string $value): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_element
- */
- public function startElement(string $name): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_element
- */
- public function endElement(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_full_end_element
- */
- public function fullEndElement(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_element_ns
- */
- public function startElementNs(?string $prefix, string $name, ?string $namespace): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_element
- */
- public function writeElement(string $name, ?string $content = null): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_element_ns
- */
- public function writeElementNs(?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_pi
- */
- public function startPi(string $target): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_pi
- */
- public function endPi(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_pi
- */
- public function writePi(string $target, string $content): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_cdata
- */
- public function startCdata(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_cdata
- * */
- public function endCdata(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_cdata
- */
- public function writeCdata(string $content): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_text
- */
- public function text(string $content): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_raw
- */
- public function writeRaw(string $content): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_document
- */
- public function startDocument(?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_document
- */
- public function endDocument(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_comment
- */
- public function writeComment(string $content): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_dtd
- */
- public function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_dtd
- */
- public function endDtd(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_dtd
- */
- public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_dtd_element
- */
- public function startDtdElement(string $qualifiedName): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_dtd_element
- */
- public function endDtdElement(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_dtd_element
- */
- public function writeDtdElement(string $name, string $content): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_dtd_attlist
- */
- public function startDtdAttlist(string $name): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_dtd_attlist
- */
- public function endDtdAttlist(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_dtd_attlist
- */
- public function writeDtdAttlist(string $name, string $content): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_start_dtd_entity
- */
- public function startDtdEntity(string $name, bool $isParam): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_end_dtd_entity
- */
- public function endDtdEntity(): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_write_dtd_entity
- */
- public function writeDtdEntity(string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_output_memory
- */
- public function outputMemory(bool $flush = true): string {}
- /**
- * @tentative-return-type
- * @alias xmlwriter_flush
- */
- public function flush(bool $empty = true): string|int {}
- }
|