xref: /PHP-8.1/ext/tidy/tidy.stub.php (revision 97a84960)
1<?php
2
3/** @generate-class-entries */
4
5function tidy_parse_string(string $string, array|string|null $config = null, ?string $encoding = null): tidy|false {}
6
7function tidy_get_error_buffer(tidy $tidy): string|false {}
8
9function tidy_get_output(tidy $tidy): string {}
10
11function tidy_parse_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): tidy|false {}
12
13function tidy_clean_repair(tidy $tidy): bool {}
14
15function tidy_repair_string(string $string, array|string|null $config = null, ?string $encoding = null): string|false {}
16
17function tidy_repair_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): string|false {}
18
19function tidy_diagnose(tidy $tidy): bool {}
20
21function tidy_get_release(): string {}
22
23#ifdef HAVE_TIDYOPTGETDOC
24function tidy_get_opt_doc(tidy $tidy, string $option): string|false {}
25#endif
26
27function tidy_get_config(tidy $tidy): array {}
28
29function tidy_get_status(tidy $tidy): int {}
30
31function tidy_get_html_ver(tidy $tidy): int {}
32
33function tidy_is_xhtml(tidy $tidy): bool {}
34
35function tidy_is_xml(tidy $tidy): bool {}
36
37function tidy_error_count(tidy $tidy): int {}
38
39function tidy_warning_count(tidy $tidy): int {}
40
41function tidy_access_count(tidy $tidy): int {}
42
43function tidy_config_count(tidy $tidy): int {}
44
45function tidy_getopt(tidy $tidy, string $option): string|int|bool {}
46
47function tidy_get_root(tidy $tidy): ?tidyNode {}
48
49function tidy_get_html(tidy $tidy): ?tidyNode {}
50
51function tidy_get_head(tidy $tidy): ?tidyNode {}
52
53function tidy_get_body(tidy $tidy): ?tidyNode {}
54
55class tidy
56{
57    public function __construct(?string $filename = null, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false) {}
58
59    /**
60     * @tentative-return-type
61     * @alias tidy_getopt
62     */
63    public function getOpt(string $option): string|int|bool {}
64
65    /**
66     * @tentative-return-type
67     * @alias tidy_clean_repair
68     */
69    public function cleanRepair(): bool {}
70
71    /** @tentative-return-type */
72    public function parseFile(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): bool {}
73
74    /** @tentative-return-type */
75    public function parseString(string $string, array|string|null $config = null, ?string $encoding = null): bool {}
76
77    /**
78     * @tentative-return-type
79     * @alias tidy_repair_string
80     */
81    public static function repairString(string $string, array|string|null $config = null, ?string $encoding = null): string|false {}
82
83    /**
84     * @tentative-return-type
85     * @alias tidy_repair_file
86     */
87    public static function repairFile(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): string|false {}
88
89    /**
90     * @tentative-return-type
91     * @alias tidy_diagnose
92     */
93    public function diagnose(): bool {}
94
95    /**
96     * @tentative-return-type
97     * @alias tidy_get_release
98     */
99    public function getRelease(): string {}
100
101    /**
102     * @tentative-return-type
103     * @alias tidy_get_config
104     */
105    public function getConfig(): array {}
106
107    /**
108     * @tentative-return-type
109     * @alias tidy_get_status
110     */
111    public function getStatus(): int {}
112
113    /**
114     * @tentative-return-type
115     * @alias tidy_get_html_ver
116     */
117    public function getHtmlVer(): int {}
118
119#ifdef HAVE_TIDYOPTGETDOC
120    /**
121     * @tentative-return-type
122     * @alias tidy_get_opt_doc
123     */
124    public function getOptDoc(string $option): string|false {}
125#endif
126
127    /**
128     * @tentative-return-type
129     * @alias tidy_is_xhtml
130     */
131    public function isXhtml(): bool {}
132
133    /**
134     * @tentative-return-type
135     * @alias tidy_is_xml
136     */
137    public function isXml(): bool {}
138
139    /**
140     * @tentative-return-type
141     * @alias tidy_get_root
142     */
143    public function root(): ?tidyNode {}
144
145    /**
146     * @tentative-return-type
147     * @alias tidy_get_head
148     */
149    public function head(): ?tidyNode {}
150
151    /**
152     * @tentative-return-type
153     * @alias tidy_get_html
154     */
155    public function html(): ?tidyNode {}
156
157    /**
158     * @tentative-return-type
159     * @alias tidy_get_body
160     */
161    public function body(): ?tidyNode {}
162}
163
164final class tidyNode
165{
166    private function __construct() {}
167
168    public function hasChildren(): bool {}
169
170    public function hasSiblings(): bool {}
171
172    public function isComment(): bool {}
173
174    public function isHtml(): bool {}
175
176    public function isText(): bool {}
177
178    public function isJste(): bool {}
179
180    public function isAsp(): bool {}
181
182    public function isPhp(): bool {}
183
184    public function getParent(): ?tidyNode {}
185}
186