~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/dom/dom_fe.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   +----------------------------------------------------------------------+
 
3
   | PHP Version 5                                                        |
 
4
   +----------------------------------------------------------------------+
 
5
   | Copyright (c) 1997-2004 The PHP Group                                |
 
6
   +----------------------------------------------------------------------+
 
7
   | This source file is subject to version 3.0 of the PHP license,       |
 
8
   | that is bundled with this package in the file LICENSE, and is        |
 
9
   | available through the world-wide-web at the following url:           |
 
10
   | http://www.php.net/license/3_0.txt.                                  |
 
11
   | If you did not receive a copy of the PHP license and are unable to   |
 
12
   | obtain it through the world-wide-web, please send a note to          |
 
13
   | license@php.net so we can mail you a copy immediately.               |
 
14
   +----------------------------------------------------------------------+
 
15
   | Authors: Christian Stocker <chregu@php.net>                          |
 
16
   |          Rob Richards <rrichards@php.net>                            |
 
17
   +----------------------------------------------------------------------+
 
18
*/
 
19
 
 
20
/* $Id: dom_fe.h,v 1.11 2004/05/16 10:30:16 rrichards Exp $ */
 
21
#ifndef DOM_FE_H
 
22
#define DOM_FE_H
 
23
 
 
24
extern zend_function_entry php_dom_domexception_class_functions[];
 
25
extern zend_function_entry php_dom_domstringlist_class_functions[];
 
26
extern zend_function_entry php_dom_namelist_class_functions[];
 
27
extern zend_function_entry php_dom_domimplementationlist_class_functions[];
 
28
extern zend_function_entry php_dom_domimplementationsource_class_functions[];
 
29
extern zend_function_entry php_dom_domimplementation_class_functions[];
 
30
extern zend_function_entry php_dom_documentfragment_class_functions[];
 
31
extern zend_function_entry php_dom_document_class_functions[];
 
32
extern zend_function_entry php_dom_node_class_functions[];
 
33
extern zend_function_entry php_dom_nodelist_class_functions[];
 
34
extern zend_function_entry php_dom_namednodemap_class_functions[];
 
35
extern zend_function_entry php_dom_characterdata_class_functions[];
 
36
extern zend_function_entry php_dom_attr_class_functions[];
 
37
extern zend_function_entry php_dom_element_class_functions[];
 
38
extern zend_function_entry php_dom_text_class_functions[];
 
39
extern zend_function_entry php_dom_comment_class_functions[];
 
40
extern zend_function_entry php_dom_typeinfo_class_functions[];
 
41
extern zend_function_entry php_dom_userdatahandler_class_functions[];
 
42
extern zend_function_entry php_dom_domerror_class_functions[];
 
43
extern zend_function_entry php_dom_domerrorhandler_class_functions[];
 
44
extern zend_function_entry php_dom_domlocator_class_functions[];
 
45
extern zend_function_entry php_dom_domconfiguration_class_functions[];
 
46
extern zend_function_entry php_dom_cdatasection_class_functions[];
 
47
extern zend_function_entry php_dom_documenttype_class_functions[];
 
48
extern zend_function_entry php_dom_notation_class_functions[];
 
49
extern zend_function_entry php_dom_entity_class_functions[];
 
50
extern zend_function_entry php_dom_entityreference_class_functions[];
 
51
extern zend_function_entry php_dom_processinginstruction_class_functions[];
 
52
extern zend_function_entry php_dom_string_extend_class_functions[];
 
53
extern zend_function_entry php_dom_xpath_class_functions[];
 
54
 
 
55
/* domexception errors */
 
56
typedef enum {
 
57
/* PHP_ERR is non-spec code for PHP errors: */
 
58
        PHP_ERR                        = 0,
 
59
        INDEX_SIZE_ERR                 = 1,
 
60
        DOMSTRING_SIZE_ERR             = 2,
 
61
        HIERARCHY_REQUEST_ERR          = 3,
 
62
        WRONG_DOCUMENT_ERR             = 4,
 
63
        INVALID_CHARACTER_ERR          = 5,
 
64
        NO_DATA_ALLOWED_ERR            = 6,
 
65
        NO_MODIFICATION_ALLOWED_ERR    = 7,
 
66
        NOT_FOUND_ERR                  = 8,
 
67
        NOT_SUPPORTED_ERR              = 9,
 
68
        INUSE_ATTRIBUTE_ERR            = 10,
 
69
/* Introduced in DOM Level 2: */
 
70
        INVALID_STATE_ERR              = 11,
 
71
/* Introduced in DOM Level 2: */
 
72
        SYNTAX_ERR                     = 12,
 
73
/* Introduced in DOM Level 2: */
 
74
        INVALID_MODIFICATION_ERR       = 13,
 
75
/* Introduced in DOM Level 2: */
 
76
        NAMESPACE_ERR                  = 14,
 
77
/* Introduced in DOM Level 2: */
 
78
        INVALID_ACCESS_ERR             = 15,
 
79
/* Introduced in DOM Level 3: */
 
80
        VALIDATION_ERR                 = 16
 
81
} dom_exception_code;
 
82
 
 
83
/* domstringlist methods */
 
84
PHP_FUNCTION(dom_domstringlist_item);
 
85
 
 
86
/* domnamelist methods */
 
87
PHP_FUNCTION(dom_namelist_get_name);
 
88
PHP_FUNCTION(dom_namelist_get_namespace_uri);
 
89
 
 
90
/* domimplementationlist methods */
 
91
PHP_FUNCTION(dom_domimplementationlist_item);
 
92
 
 
93
/* domimplementationsource methods */
 
94
PHP_FUNCTION(dom_domimplementationsource_get_domimplementation);
 
95
PHP_FUNCTION(dom_domimplementationsource_get_domimplementations);
 
96
 
 
97
/* domimplementation methods */
 
98
PHP_METHOD(domimplementation, hasFeature);
 
99
PHP_METHOD(domimplementation, createDocumentType);
 
100
PHP_METHOD(domimplementation, createDocument);
 
101
PHP_METHOD(domimplementation, getFeature);
 
102
 
 
103
/* domdocumentfragment methods */
 
104
PHP_METHOD(domdocumentfragment, __construct);
 
105
 
 
106
/* domdocument methods */
 
107
PHP_FUNCTION(dom_document_create_element);
 
108
PHP_FUNCTION(dom_document_create_document_fragment);
 
109
PHP_FUNCTION(dom_document_create_text_node);
 
110
PHP_FUNCTION(dom_document_create_comment);
 
111
PHP_FUNCTION(dom_document_create_cdatasection);
 
112
PHP_FUNCTION(dom_document_create_processing_instruction);
 
113
PHP_FUNCTION(dom_document_create_attribute);
 
114
PHP_FUNCTION(dom_document_create_entity_reference);
 
115
PHP_FUNCTION(dom_document_get_elements_by_tag_name);
 
116
PHP_FUNCTION(dom_document_import_node);
 
117
PHP_FUNCTION(dom_document_create_element_ns);
 
118
PHP_FUNCTION(dom_document_create_attribute_ns);
 
119
PHP_FUNCTION(dom_document_get_elements_by_tag_name_ns);
 
120
PHP_FUNCTION(dom_document_get_element_by_id);
 
121
PHP_FUNCTION(dom_document_adopt_node);
 
122
PHP_FUNCTION(dom_document_normalize_document);
 
123
PHP_FUNCTION(dom_document_rename_node);
 
124
PHP_METHOD(domdocument, __construct);
 
125
        /* convienience methods */
 
126
PHP_METHOD(domdocument, load);
 
127
PHP_FUNCTION(dom_document_save);
 
128
PHP_METHOD(domdocument, loadXML);
 
129
PHP_FUNCTION(dom_document_savexml);
 
130
PHP_FUNCTION(dom_document_validate);
 
131
PHP_FUNCTION(dom_document_xinclude);
 
132
 
 
133
#if defined(LIBXML_HTML_ENABLED)
 
134
PHP_METHOD(domdocument, loadHTML);
 
135
PHP_METHOD(domdocument, loadHTMLFile);
 
136
PHP_FUNCTION(dom_document_save_html);
 
137
PHP_FUNCTION(dom_document_save_html_file);
 
138
#endif  /* defined(LIBXML_HTML_ENABLED) */
 
139
 
 
140
#if defined(LIBXML_SCHEMAS_ENABLED)
 
141
PHP_FUNCTION(dom_document_schema_validate_file);
 
142
PHP_FUNCTION(dom_document_schema_validate_xml);
 
143
PHP_FUNCTION(dom_document_relaxNG_validate_file);
 
144
PHP_FUNCTION(dom_document_relaxNG_validate_xml);
 
145
#endif
 
146
 
 
147
/* domnode methods */
 
148
PHP_FUNCTION(dom_node_insert_before);
 
149
PHP_FUNCTION(dom_node_replace_child);
 
150
PHP_FUNCTION(dom_node_remove_child);
 
151
PHP_FUNCTION(dom_node_append_child);
 
152
PHP_FUNCTION(dom_node_has_child_nodes);
 
153
PHP_FUNCTION(dom_node_clone_node);
 
154
PHP_FUNCTION(dom_node_normalize);
 
155
PHP_FUNCTION(dom_node_is_supported);
 
156
PHP_FUNCTION(dom_node_has_attributes);
 
157
PHP_FUNCTION(dom_node_compare_document_position);
 
158
PHP_FUNCTION(dom_node_is_same_node);
 
159
PHP_FUNCTION(dom_node_lookup_prefix);
 
160
PHP_FUNCTION(dom_node_is_default_namespace);
 
161
PHP_FUNCTION(dom_node_lookup_namespace_uri);
 
162
PHP_FUNCTION(dom_node_is_equal_node);
 
163
PHP_FUNCTION(dom_node_get_feature);
 
164
PHP_FUNCTION(dom_node_set_user_data);
 
165
PHP_FUNCTION(dom_node_get_user_data);
 
166
 
 
167
/* domnodelist methods */
 
168
PHP_FUNCTION(dom_nodelist_item);
 
169
 
 
170
/* domnamednodemap methods */
 
171
PHP_FUNCTION(dom_namednodemap_get_named_item);
 
172
PHP_FUNCTION(dom_namednodemap_set_named_item);
 
173
PHP_FUNCTION(dom_namednodemap_remove_named_item);
 
174
PHP_FUNCTION(dom_namednodemap_item);
 
175
PHP_FUNCTION(dom_namednodemap_get_named_item_ns);
 
176
PHP_FUNCTION(dom_namednodemap_set_named_item_ns);
 
177
PHP_FUNCTION(dom_namednodemap_remove_named_item_ns);
 
178
 
 
179
/* domcharacterdata methods */
 
180
PHP_FUNCTION(dom_characterdata_substring_data);
 
181
PHP_FUNCTION(dom_characterdata_append_data);
 
182
PHP_FUNCTION(dom_characterdata_insert_data);
 
183
PHP_FUNCTION(dom_characterdata_delete_data);
 
184
PHP_FUNCTION(dom_characterdata_replace_data);
 
185
 
 
186
/* domattr methods */
 
187
PHP_FUNCTION(dom_attr_is_id);
 
188
PHP_METHOD(domattr, __construct);
 
189
 
 
190
/* domelement methods */
 
191
PHP_FUNCTION(dom_element_get_attribute);
 
192
PHP_FUNCTION(dom_element_set_attribute);
 
193
PHP_FUNCTION(dom_element_remove_attribute);
 
194
PHP_FUNCTION(dom_element_get_attribute_node);
 
195
PHP_FUNCTION(dom_element_set_attribute_node);
 
196
PHP_FUNCTION(dom_element_remove_attribute_node);
 
197
PHP_FUNCTION(dom_element_get_elements_by_tag_name);
 
198
PHP_FUNCTION(dom_element_get_attribute_ns);
 
199
PHP_FUNCTION(dom_element_set_attribute_ns);
 
200
PHP_FUNCTION(dom_element_remove_attribute_ns);
 
201
PHP_FUNCTION(dom_element_get_attribute_node_ns);
 
202
PHP_FUNCTION(dom_element_set_attribute_node_ns);
 
203
PHP_FUNCTION(dom_element_get_elements_by_tag_name_ns);
 
204
PHP_FUNCTION(dom_element_has_attribute);
 
205
PHP_FUNCTION(dom_element_has_attribute_ns);
 
206
PHP_FUNCTION(dom_element_set_id_attribute);
 
207
PHP_FUNCTION(dom_element_set_id_attribute_ns);
 
208
PHP_FUNCTION(dom_element_set_id_attribute_node);
 
209
PHP_METHOD(domelement, __construct);
 
210
 
 
211
/* domtext methods */
 
212
PHP_FUNCTION(dom_text_split_text);
 
213
PHP_FUNCTION(dom_text_is_whitespace_in_element_content);
 
214
PHP_FUNCTION(dom_text_replace_whole_text);
 
215
PHP_METHOD(domtext, __construct);
 
216
 
 
217
/* domcomment methods */
 
218
PHP_METHOD(domcomment, __construct);
 
219
 
 
220
/* domtypeinfo methods */
 
221
 
 
222
/* domuserdatahandler methods */
 
223
PHP_FUNCTION(dom_userdatahandler_handle);
 
224
 
 
225
/* domdomerror methods */
 
226
 
 
227
/* domerrorhandler methods */
 
228
PHP_FUNCTION(dom_domerrorhandler_handle_error);
 
229
 
 
230
/* domlocator methods */
 
231
 
 
232
/* domconfiguration methods */
 
233
PHP_FUNCTION(dom_domconfiguration_set_parameter);
 
234
PHP_FUNCTION(dom_domconfiguration_get_parameter);
 
235
PHP_FUNCTION(dom_domconfiguration_can_set_parameter);
 
236
 
 
237
/* domcdatasection methods */
 
238
PHP_METHOD(domcdatasection, __construct);
 
239
 
 
240
/* domdocumenttype methods */
 
241
 
 
242
/* domnotation methods */
 
243
 
 
244
/* domentity methods */
 
245
 
 
246
/* domentityreference methods */
 
247
PHP_METHOD(domentityreference, __construct);
 
248
 
 
249
/* domprocessinginstruction methods */
 
250
PHP_METHOD(domprocessinginstruction, __construct);
 
251
 
 
252
/* string_extend methods */
 
253
PHP_FUNCTION(dom_string_extend_find_offset16);
 
254
PHP_FUNCTION(dom_string_extend_find_offset32);
 
255
 
 
256
#if defined(LIBXML_XPATH_ENABLED)
 
257
/* xpath methods */
 
258
PHP_METHOD(domxpath, __construct);
 
259
PHP_FUNCTION(dom_xpath_register_ns);
 
260
PHP_FUNCTION(dom_xpath_query);
 
261
#endif
 
262
 
 
263
#endif /* DOM_FE_H */