php-src/ext/xmlwriter/xmlwriter.stub.php

177 lines
6.2 KiB
PHP
Raw Normal View History

2019-09-03 15:09:57 +08:00
<?php
/** @return XMLWriter|false */
2019-09-03 15:09:57 +08:00
function xmlwriter_open_uri(string $uri) {}
/** @return XMLWriter|false */
2019-09-03 15:09:57 +08:00
function xmlwriter_open_memory() {}
function xmlwriter_set_indent(XMLWriter $xmlwriter, bool $indent): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_set_indent_string(XMLWriter $xmlwriter, string $indentString): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_comment(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_comment(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_attribute(XMLWriter $xmlwriter, string $name): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_attribute(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_attribute(XMLWriter $xmlwriter, string $name, string $value): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_attribute_ns(XMLWriter $xmlwriter, string $prefix, string $name, ?string $uri): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_attribute_ns(XMLWriter $xmlwriter, string $prefix, string $name, ?string $uri, string $content): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_element(XMLWriter $xmlwriter, string $name): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_element(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_full_end_element(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_element_ns(XMLWriter $xmlwriter, ?string $prefix, string $name, ?string $uri): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_element(XMLWriter $xmlwriter, string $name, ?string $content = null): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_element_ns(XMLWriter $xmlwriter, ?string $prefix, string $name, ?string $uri, ?string $content = null): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_pi(XMLWriter $xmlwriter, string $target): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_pi(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_pi(XMLWriter $xmlwriter, string $target, string $content): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_cdata(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_cdata(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_cdata(XMLWriter $xmlwriter, string $content): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_text(XMLWriter $xmlwriter, string $content): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_raw(XMLWriter $xmlwriter, string $content): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_document(XMLWriter $xmlwriter, ?string $version = '1.0', ?string $encoding = null, ?string $standalone = null) {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_document(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_comment(XMLWriter $xmlwriter, string $content): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_dtd(XMLWriter $xmlwriter, string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_dtd(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_dtd(XMLWriter $xmlwriter, string $name, ?string $publicId = null, ?string $systemId = null, ?string $subset = null): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_dtd_element(XMLWriter $xmlwriter, string $qualifiedName): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_dtd_element(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_dtd_element(XMLWriter $xmlwriter, string $name, string $content): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_dtd_attlist(XMLWriter $xmlwriter, string $name): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_dtd_attlist(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_dtd_attlist(XMLWriter $xmlwriter, string $name, string $content): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_start_dtd_entity(XMLWriter $xmlwriter, string $name, bool $isparam): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_end_dtd_entity(XMLWriter $xmlwriter): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_write_dtd_entity(XMLWriter $xmlwriter, string $name, string $content, bool $isparam = false, string $publicId = UNKNOWN, string $systemId = UNKNOWN, string $ndataid = UNKNOWN): bool {}
2019-09-03 15:09:57 +08:00
function xmlwriter_output_memory(XMLWriter $xmlwriter, bool $flush = true): string {}
2019-09-03 15:09:57 +08:00
/** @return string|int */
function xmlwriter_flush(XMLWriter $xmlwriter, bool $empty = true) {}
2019-09-03 15:09:57 +08:00
class XMLWriter
{
function openUri(string $uri): bool {}
function openMemory(): bool {}
function setIndent(bool $indent): bool {}
function setIdentString(string $indentString): bool {}
function startComment(): bool {}
function endComment(): bool {}
function startAttribute(string $name): bool {}
function endAttribute(): bool {}
function writeAttribute(string $name, string $value): bool {}
2019-09-04 15:55:27 +08:00
function startAttributeNs(string $prefix, string $name, ?string $uri): bool {}
2019-09-03 15:09:57 +08:00
2019-09-04 15:55:27 +08:00
function writeAttributeNs(string $prefix, string $name, ?string $uri, string $content): bool {}
2019-09-03 15:09:57 +08:00
function startElement(string $name): bool {}
function endElement(): bool {}
function fullEndElement(): bool {}
2019-09-04 15:55:27 +08:00
function startElementNs(?string $prefix, string $name, ?string $uri): bool {}
2019-09-03 15:09:57 +08:00
2019-09-04 15:55:27 +08:00
function writeElement(string $name, ?string $content = null): bool {}
2019-09-03 15:09:57 +08:00
2019-09-04 15:55:27 +08:00
function writeElementNs(?string $prefix, string $name, ?string $uri, ?string $content = null): bool {}
2019-09-03 15:09:57 +08:00
function startPi(string $target): bool {}
function endPi(): bool {}
function writePi(string $target, string $content): bool {}
function startCdata(): bool {}
function endCdata(): bool {}
function writeCdata(string $content): bool {}
function text(string $content): bool {}
function writeRaw(string $content): bool {}
2019-09-04 15:55:27 +08:00
function startDocument(?string $version = '1.0', ?string $encoding = null, ?string $standalone = null): bool {}
2019-09-03 15:09:57 +08:00
function endDocument(): bool {}
function writeComment(string $content): bool {}
2019-09-04 15:55:27 +08:00
function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
2019-09-03 15:09:57 +08:00
function endDtd(): bool {}
2019-09-04 15:55:27 +08:00
function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $subset = null): bool {}
2019-09-03 15:09:57 +08:00
function startDtdElement(string $qualifiedName): bool {}
function endDtdElement(): bool {}
function writeDtdElement(string $name, string $content): bool {}
function startDtdAttlist(string $name): bool {}
function endDtdAttlist(): bool {}
function writeDtdAttlist(string $name, string $content): bool {}
function startDtdEntity(string $name, bool $isparam): bool {}
function endDtdEntity(): bool {}
function writeDtdEntity(string $name, string $content, bool $isparam, string $publicId = UNKNOWN, string $systemId = UNKNOWN, string $ndataid = UNKNOWN): bool {}
function outputMemory(bool $flush = true): string {}
/** @return string|int */
function flush(bool $empty = true) {}
}