Debian Codegraph @

codelitephp/resources/cc/libxml.php

raw
1 <?php
2
3 // Start of libxml v.
4
5 class LibXMLError {
6 }
7
8 /**
9 * Set the streams context for the next libxml document load or write
10 * @link http://www.php.net/manual/en/function.libxml-set-streams-context.php
11 * @param streams_context resource <p>
12 * The stream context resource (created with
13 * stream_context_create)
14 * </p>
15 * @return void
16 */
17 function libxml_set_streams_context ($streams_context) {}
18
19 /**
20 * Disable libxml errors and allow user to fetch error information as needed
21 * @link http://www.php.net/manual/en/function.libxml-use-internal-errors.php
22 * @param use_errors bool[optional] <p>
23 * Enable (true) user error handling or disable (false) user error handling. Disabling will also clear any existing libxml errors.
24 * </p>
25 * @return bool This function returns the previous value of
26 * use_errors.
27 */
28 function libxml_use_internal_errors ($use_errors = null) {}
29
30 /**
31 * Retrieve last error from libxml
32 * @link http://www.php.net/manual/en/function.libxml-get-last-error.php
33 * @return LibXMLError a LibXMLError object if there is any error in the
34 * buffer, false otherwise.
35 */
36 function libxml_get_last_error () {}
37
38 /**
39 * Clear libxml error buffer
40 * @link http://www.php.net/manual/en/function.libxml-clear-errors.php
41 * @return void
42 */
43 function libxml_clear_errors () {}
44
45 /**
46 * Retrieve array of errors
47 * @link http://www.php.net/manual/en/function.libxml-get-errors.php
48 * @return array an array with LibXMLError objects if there are any
49 * errors in the buffer, or an empty array otherwise.
50 */
51 function libxml_get_errors () {}
52
53 /**
54 * Disable the ability to load external entities
55 * @link http://www.php.net/manual/en/function.libxml-disable-entity-loader.php
56 * @param disable bool[optional] <p>
57 * Disable (true) or enable (false) libxml extensions (such as
58 * ,
59 * and ) to load external entities.
60 * </p>
61 * @return bool the previous value.
62 */
63 function libxml_disable_entity_loader ($disable = null) {}
64
65 /**
66 * Changes the default external entity loader
67 * @link http://www.php.net/manual/en/function.libxml-set-external-entity-loader.php
68 * @param resolver_function callable <p>
69 * A callable that takes three arguments. Two strings, a public id
70 * and system id, and a context (an array with four keys) as the third argument.
71 * This callback should return a resource, a string from which a resource can be
72 * opened, or &null;.
73 * </p>
74 * @return void
75 */
76 function libxml_set_external_entity_loader ($resolver_function) {}
77
78
79 /**
80 * libxml version like 20605 or 20617
81 * @link http://www.php.net/manual/en/libxml.constants.php
82 */
83 define ('LIBXML_VERSION', 20901);
84
85 /**
86 * libxml version like 2.6.5 or 2.6.17
87 * @link http://www.php.net/manual/en/libxml.constants.php
88 */
89 define ('LIBXML_DOTTED_VERSION', "2.9.1");
90 define ('LIBXML_LOADED_VERSION', 20901);
91
92 /**
93 * Substitute entities
94 * @link http://www.php.net/manual/en/libxml.constants.php
95 */
96 define ('LIBXML_NOENT', 2);
97
98 /**
99 * Load the external subset
100 * @link http://www.php.net/manual/en/libxml.constants.php
101 */
102 define ('LIBXML_DTDLOAD', 4);
103
104 /**
105 * Default DTD attributes
106 * @link http://www.php.net/manual/en/libxml.constants.php
107 */
108 define ('LIBXML_DTDATTR', 8);
109
110 /**
111 * Validate with the DTD
112 * @link http://www.php.net/manual/en/libxml.constants.php
113 */
114 define ('LIBXML_DTDVALID', 16);
115
116 /**
117 * Suppress error reports
118 * @link http://www.php.net/manual/en/libxml.constants.php
119 */
120 define ('LIBXML_NOERROR', 32);
121
122 /**
123 * Suppress warning reports
124 * @link http://www.php.net/manual/en/libxml.constants.php
125 */
126 define ('LIBXML_NOWARNING', 64);
127
128 /**
129 * Remove blank nodes
130 * @link http://www.php.net/manual/en/libxml.constants.php
131 */
132 define ('LIBXML_NOBLANKS', 256);
133
134 /**
135 * Implement XInclude substitution
136 * @link http://www.php.net/manual/en/libxml.constants.php
137 */
138 define ('LIBXML_XINCLUDE', 1024);
139
140 /**
141 * Remove redundant namespaces declarations
142 * @link http://www.php.net/manual/en/libxml.constants.php
143 */
144 define ('LIBXML_NSCLEAN', 8192);
145
146 /**
147 * Merge CDATA as text nodes
148 * @link http://www.php.net/manual/en/libxml.constants.php
149 */
150 define ('LIBXML_NOCDATA', 16384);
151
152 /**
153 * Disable network access when loading documents
154 * @link http://www.php.net/manual/en/libxml.constants.php
155 */
156 define ('LIBXML_NONET', 2048);
157
158 /**
159 * Sets XML_PARSE_PEDANTIC flag, which enables pedentic error reporting.
160 *
161 *
162 * <p>
163 * Available as of PHP >= 5.4.0
164 * </p>
165 * @link http://www.php.net/manual/en/libxml.constants.php
166 */
167 define ('LIBXML_PEDANTIC', 128);
168
169 /**
170 * Activate small nodes allocation optimization. This may speed up your
171 * application without needing to change the code.
172 *
173 *
174 * <p>
175 * Only available in Libxml >= 2.6.21
176 * </p>
177 * @link http://www.php.net/manual/en/libxml.constants.php
178 */
179 define ('LIBXML_COMPACT', 65536);
180
181 /**
182 * Drop the XML declaration when saving a document
183 *
184 *
185 * <p>
186 * Only available in Libxml >= 2.6.21
187 * </p>
188 * @link http://www.php.net/manual/en/libxml.constants.php
189 */
190 define ('LIBXML_NOXMLDECL', 2);
191
192 /**
193 * Sets XML_PARSE_HUGE flag, which relaxes any hardcoded limit from the parser. This affects
194 * limits like maximum depth of a document or the entity recursion, as well as limits of the
195 * size of text nodes.
196 *
197 *
198 * <p>
199 * Only available in Libxml >= 2.7.0 (as of PHP >= 5.3.2 and PHP >= 5.2.12)
200 * </p>
201 * @link http://www.php.net/manual/en/libxml.constants.php
202 */
203 define ('LIBXML_PARSEHUGE', 524288);
204
205 /**
206 * Expand empty tags (e.g. to
207 * )
208 *
209 *
210 * <p>
211 * This option is currently just available in the
212 * and
213 * functions.
214 * </p>
215 * @link http://www.php.net/manual/en/libxml.constants.php
216 */
217 define ('LIBXML_NOEMPTYTAG', 4);
218
219 /**
220 * Create default/fixed value nodes during XSD schema validation
221 *
222 *
223 * <p>
224 * Only available in Libxml >= 2.6.14 (as of PHP >= 5.5.2)
225 * </p>
226 * @link http://www.php.net/manual/en/libxml.constants.php
227 */
228 define ('LIBXML_SCHEMA_CREATE', 1);
229
230 /**
231 * Sets HTML_PARSE_NOIMPLIED flag, which turns off the
232 * automatic adding of implied html/body... elements.
233 *
234 *
235 * <p>
236 * Only available in Libxml >= 2.7.7 (as of PHP >= 5.4.0)
237 * </p>
238 * @link http://www.php.net/manual/en/libxml.constants.php
239 */
240 define ('LIBXML_HTML_NOIMPLIED', 8192);
241
242 /**
243 * Sets HTML_PARSE_NODEFDTD flag, which prevents a default doctype
244 * being added when one is not found.
245 *
246 *
247 * <p>
248 * Only available in Libxml >= 2.7.8 (as of PHP >= 5.4.0)
249 * </p>
250 * @link http://www.php.net/manual/en/libxml.constants.php
251 */
252 define ('LIBXML_HTML_NODEFDTD', 4);
253
254 /**
255 * No errors
256 * @link http://www.php.net/manual/en/libxml.constants.php
257 */
258 define ('LIBXML_ERR_NONE', 0);
259
260 /**
261 * A simple warning
262 * @link http://www.php.net/manual/en/libxml.constants.php
263 */
264 define ('LIBXML_ERR_WARNING', 1);
265
266 /**
267 * A recoverable error
268 * @link http://www.php.net/manual/en/libxml.constants.php
269 */
270 define ('LIBXML_ERR_ERROR', 2);
271
272 /**
273 * A fatal error
274 * @link http://www.php.net/manual/en/libxml.constants.php
275 */
276 define ('LIBXML_ERR_FATAL', 3);
277
278 // End of libxml v.
279 ?>