summaryrefslogtreecommitdiff
path: root/ext/tidy/tidy.stub.php
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-09-22 16:17:23 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-09-22 16:18:33 +0200
commit7f36328bf0e8073f757ff005c3b49c909af7d145 (patch)
treeb270be96efc1cc58f89cbb2a2a25cafdd2285987 /ext/tidy/tidy.stub.php
parent6072fe4342760c4bb02f91328d95ebf425e55b93 (diff)
downloadphp-git-7f36328bf0e8073f757ff005c3b49c909af7d145.tar.gz
Add ext/tidy stubs
Diffstat (limited to 'ext/tidy/tidy.stub.php')
-rw-r--r--ext/tidy/tidy.stub.php143
1 files changed, 143 insertions, 0 deletions
diff --git a/ext/tidy/tidy.stub.php b/ext/tidy/tidy.stub.php
new file mode 100644
index 0000000000..3add15a282
--- /dev/null
+++ b/ext/tidy/tidy.stub.php
@@ -0,0 +1,143 @@
+<?php
+
+/**
+ * @param array|string $config_options
+ * @return tidy|false
+ */
+function tidy_parse_string(string $input, $config_options = UNKNOWN, string $encoding = UNKNOWN) {}
+
+/** @return string|false */
+function tidy_get_error_buffer(tidy $object) {}
+
+function tidy_get_output(tidy $object): string {}
+
+/**
+ * @param array|string $config_options
+ * @return tidy|false
+ */
+function tidy_parse_file(string $file, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
+
+function tidy_clean_repair(tidy $object): bool {}
+
+/**
+ * @param array|string $config_options
+ * @return string|false
+ */
+function tidy_repair_string(string $data, $config_file = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
+
+/**
+ * @param array|string $config_options
+ * @return string|false
+ */
+function tidy_repair_file(string $filename, $config_file = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
+
+function tidy_diagnose(tidy $object): bool {}
+
+function tidy_get_release(): string {}
+
+#if HAVE_TIDYOPTGETDOC
+/** @return string|false */
+function tidy_get_opt_doc(tidy $object, string $optname) {}
+#endif
+
+function tidy_get_config(tidy $object): array {}
+
+function tidy_get_status(tidy $object): int {}
+
+function tidy_get_html_ver(tidy $object): int {}
+
+function tidy_is_xhtml(tidy $object): bool {}
+
+function tidy_is_xml(tidy $object): bool {}
+
+function tidy_error_count(tidy $object): int {}
+
+function tidy_warning_count(tidy $object): int {}
+
+function tidy_access_count(tidy $object): int {}
+
+function tidy_config_count(tidy $object): int {}
+
+/** @return string|int|bool */
+function tidy_getopt(tidy $object, string $option) {}
+
+function tidy_get_root(tidy $object): ?tidyNode {}
+
+function tidy_get_html(tidy $object): ?tidyNode {}
+
+function tidy_get_head(tidy $object): ?tidyNode {}
+
+function tidy_get_body(tidy $tidy): ?tidyNode {}
+
+class tidy
+{
+ /** @param array|string $config_options */
+ public function __construct(string $filename = UNKNOWN, $config_file = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
+
+ /** @return string|int|bool */
+ public function getOpt(string $option) {}
+
+ public function cleanRepair(): bool {}
+
+ /** @param array|string $config_options */
+ public function parseFile(string $file, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): bool {}
+
+ /** @param array|string $config_options */
+ public function parseString(string $input, $config_optinons = UNKNOWN, string $encoding = UNKNOWN): bool {}
+
+ /** @param array|string $config_options */
+ public function repairString(string $data, $config_file = UNKNOWN, string $encoding = UNKNOWN): bool {}
+
+ /** @param array|string $config_options */
+ public function repairFile(string $filename, $config_file = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): bool {}
+
+ public function diagnose(): bool {}
+
+ public function getRelease(): string {}
+
+ public function getConfig(): array {}
+
+ public function getStatus(): int {}
+
+ public function getHtmlVer(): int {}
+
+#if HAVE_TIDYOPTGETDOC
+ /** @return string|false */
+ public function getOptDoc(string $optname) {}
+#endif
+
+ public function isXhtml(): bool {}
+
+ public function isXml(): bool {}
+
+ public function root(): ?tidyNode {}
+
+ public function head(): ?tidyNode {}
+
+ public function html(): ?tidyNode {}
+
+ public function body(): ?tidyNode {}
+}
+
+class tidyNode
+{
+ private function __construct() {}
+
+ public function hasChildren(): bool {}
+
+ public function hasSiblings(): bool {}
+
+ public function isComment(): bool {}
+
+ public function isHtml(): bool {}
+
+ public function isText(): bool {}
+
+ public function isJste(): bool {}
+
+ public function isAsp(): bool {}
+
+ public function isPhp(): bool {}
+
+ public function getParent(): ?tidyNode {}
+}