Back to index

php5  5.3.10
dom_fe.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Authors: Christian Stocker <chregu@php.net>                          |
00016    |          Rob Richards <rrichards@php.net>                            |
00017    +----------------------------------------------------------------------+
00018 */
00019 
00020 /* $Id: dom_fe.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 #ifndef DOM_FE_H
00022 #define DOM_FE_H
00023 
00024 extern const zend_function_entry php_dom_domexception_class_functions[];
00025 extern const zend_function_entry php_dom_domstringlist_class_functions[];
00026 extern const zend_function_entry php_dom_namelist_class_functions[];
00027 extern const zend_function_entry php_dom_domimplementationlist_class_functions[];
00028 extern const zend_function_entry php_dom_domimplementationsource_class_functions[];
00029 extern const zend_function_entry php_dom_domimplementation_class_functions[];
00030 extern const zend_function_entry php_dom_documentfragment_class_functions[];
00031 extern const zend_function_entry php_dom_document_class_functions[];
00032 extern const zend_function_entry php_dom_node_class_functions[];
00033 extern const zend_function_entry php_dom_nodelist_class_functions[];
00034 extern const zend_function_entry php_dom_namednodemap_class_functions[];
00035 extern const zend_function_entry php_dom_characterdata_class_functions[];
00036 extern const zend_function_entry php_dom_attr_class_functions[];
00037 extern const zend_function_entry php_dom_element_class_functions[];
00038 extern const zend_function_entry php_dom_text_class_functions[];
00039 extern const zend_function_entry php_dom_comment_class_functions[];
00040 extern const zend_function_entry php_dom_typeinfo_class_functions[];
00041 extern const zend_function_entry php_dom_userdatahandler_class_functions[];
00042 extern const zend_function_entry php_dom_domerror_class_functions[];
00043 extern const zend_function_entry php_dom_domerrorhandler_class_functions[];
00044 extern const zend_function_entry php_dom_domlocator_class_functions[];
00045 extern const zend_function_entry php_dom_domconfiguration_class_functions[];
00046 extern const zend_function_entry php_dom_cdatasection_class_functions[];
00047 extern const zend_function_entry php_dom_documenttype_class_functions[];
00048 extern const zend_function_entry php_dom_notation_class_functions[];
00049 extern const zend_function_entry php_dom_entity_class_functions[];
00050 extern const zend_function_entry php_dom_entityreference_class_functions[];
00051 extern const zend_function_entry php_dom_processinginstruction_class_functions[];
00052 extern const zend_function_entry php_dom_string_extend_class_functions[];
00053 extern const zend_function_entry php_dom_xpath_class_functions[];
00054 
00055 /* domexception errors */
00056 typedef enum {
00057 /* PHP_ERR is non-spec code for PHP errors: */
00058        PHP_ERR                        = 0,
00059        INDEX_SIZE_ERR                 = 1,
00060        DOMSTRING_SIZE_ERR             = 2,
00061        HIERARCHY_REQUEST_ERR          = 3,
00062        WRONG_DOCUMENT_ERR             = 4,
00063        INVALID_CHARACTER_ERR          = 5,
00064        NO_DATA_ALLOWED_ERR            = 6,
00065        NO_MODIFICATION_ALLOWED_ERR    = 7,
00066        NOT_FOUND_ERR                  = 8,
00067        NOT_SUPPORTED_ERR              = 9,
00068        INUSE_ATTRIBUTE_ERR            = 10,
00069 /* Introduced in DOM Level 2: */
00070        INVALID_STATE_ERR              = 11,
00071 /* Introduced in DOM Level 2: */
00072        SYNTAX_ERR                     = 12,
00073 /* Introduced in DOM Level 2: */
00074        INVALID_MODIFICATION_ERR       = 13,
00075 /* Introduced in DOM Level 2: */
00076        NAMESPACE_ERR                  = 14,
00077 /* Introduced in DOM Level 2: */
00078        INVALID_ACCESS_ERR             = 15,
00079 /* Introduced in DOM Level 3: */
00080        VALIDATION_ERR                 = 16
00081 } dom_exception_code;
00082 
00083 /* domstringlist methods */
00084 PHP_FUNCTION(dom_domstringlist_item);
00085 
00086 /* domnamelist methods */
00087 PHP_FUNCTION(dom_namelist_get_name);
00088 PHP_FUNCTION(dom_namelist_get_namespace_uri);
00089 
00090 /* domimplementationlist methods */
00091 PHP_FUNCTION(dom_domimplementationlist_item);
00092 
00093 /* domimplementationsource methods */
00094 PHP_FUNCTION(dom_domimplementationsource_get_domimplementation);
00095 PHP_FUNCTION(dom_domimplementationsource_get_domimplementations);
00096 
00097 /* domimplementation methods */
00098 PHP_METHOD(domimplementation, hasFeature);
00099 PHP_METHOD(domimplementation, createDocumentType);
00100 PHP_METHOD(domimplementation, createDocument);
00101 PHP_METHOD(domimplementation, getFeature);
00102 
00103 /* domdocumentfragment methods */
00104 PHP_METHOD(domdocumentfragment, __construct);
00105 PHP_METHOD(domdocumentfragment, appendXML);
00106 
00107 /* domdocument methods */
00108 PHP_FUNCTION(dom_document_create_element);
00109 PHP_FUNCTION(dom_document_create_document_fragment);
00110 PHP_FUNCTION(dom_document_create_text_node);
00111 PHP_FUNCTION(dom_document_create_comment);
00112 PHP_FUNCTION(dom_document_create_cdatasection);
00113 PHP_FUNCTION(dom_document_create_processing_instruction);
00114 PHP_FUNCTION(dom_document_create_attribute);
00115 PHP_FUNCTION(dom_document_create_entity_reference);
00116 PHP_FUNCTION(dom_document_get_elements_by_tag_name);
00117 PHP_FUNCTION(dom_document_import_node);
00118 PHP_FUNCTION(dom_document_create_element_ns);
00119 PHP_FUNCTION(dom_document_create_attribute_ns);
00120 PHP_FUNCTION(dom_document_get_elements_by_tag_name_ns);
00121 PHP_FUNCTION(dom_document_get_element_by_id);
00122 PHP_FUNCTION(dom_document_adopt_node);
00123 PHP_FUNCTION(dom_document_normalize_document);
00124 PHP_FUNCTION(dom_document_rename_node);
00125 PHP_METHOD(domdocument, __construct);
00126        /* convienience methods */
00127 PHP_METHOD(domdocument, load);
00128 PHP_FUNCTION(dom_document_save);
00129 PHP_METHOD(domdocument, loadXML);
00130 PHP_FUNCTION(dom_document_savexml);
00131 PHP_FUNCTION(dom_document_validate);
00132 PHP_FUNCTION(dom_document_xinclude);
00133 PHP_METHOD(domdocument, registerNodeClass);
00134 
00135 #if defined(LIBXML_HTML_ENABLED)
00136 PHP_METHOD(domdocument, loadHTML);
00137 PHP_METHOD(domdocument, loadHTMLFile);
00138 PHP_FUNCTION(dom_document_save_html);
00139 PHP_FUNCTION(dom_document_save_html_file);
00140 #endif  /* defined(LIBXML_HTML_ENABLED) */
00141 
00142 #if defined(LIBXML_SCHEMAS_ENABLED)
00143 PHP_FUNCTION(dom_document_schema_validate_file);
00144 PHP_FUNCTION(dom_document_schema_validate_xml);
00145 PHP_FUNCTION(dom_document_relaxNG_validate_file);
00146 PHP_FUNCTION(dom_document_relaxNG_validate_xml);
00147 #endif
00148 
00149 /* domnode methods */
00150 PHP_FUNCTION(dom_node_insert_before);
00151 PHP_FUNCTION(dom_node_replace_child);
00152 PHP_FUNCTION(dom_node_remove_child);
00153 PHP_FUNCTION(dom_node_append_child);
00154 PHP_FUNCTION(dom_node_has_child_nodes);
00155 PHP_FUNCTION(dom_node_clone_node);
00156 PHP_FUNCTION(dom_node_normalize);
00157 PHP_FUNCTION(dom_node_is_supported);
00158 PHP_FUNCTION(dom_node_has_attributes);
00159 PHP_FUNCTION(dom_node_compare_document_position);
00160 PHP_FUNCTION(dom_node_is_same_node);
00161 PHP_FUNCTION(dom_node_lookup_prefix);
00162 PHP_FUNCTION(dom_node_is_default_namespace);
00163 PHP_FUNCTION(dom_node_lookup_namespace_uri);
00164 PHP_FUNCTION(dom_node_is_equal_node);
00165 PHP_FUNCTION(dom_node_get_feature);
00166 PHP_FUNCTION(dom_node_set_user_data);
00167 PHP_FUNCTION(dom_node_get_user_data);
00168 PHP_METHOD(domnode, C14N);
00169 PHP_METHOD(domnode, C14NFile);
00170 PHP_METHOD(domnode, getNodePath);
00171 PHP_METHOD(domnode, getLineNo);
00172 
00173 /* domnodelist methods */
00174 PHP_FUNCTION(dom_nodelist_item);
00175 
00176 /* domnamednodemap methods */
00177 PHP_FUNCTION(dom_namednodemap_get_named_item);
00178 PHP_FUNCTION(dom_namednodemap_set_named_item);
00179 PHP_FUNCTION(dom_namednodemap_remove_named_item);
00180 PHP_FUNCTION(dom_namednodemap_item);
00181 PHP_FUNCTION(dom_namednodemap_get_named_item_ns);
00182 PHP_FUNCTION(dom_namednodemap_set_named_item_ns);
00183 PHP_FUNCTION(dom_namednodemap_remove_named_item_ns);
00184 
00185 /* domcharacterdata methods */
00186 PHP_FUNCTION(dom_characterdata_substring_data);
00187 PHP_FUNCTION(dom_characterdata_append_data);
00188 PHP_FUNCTION(dom_characterdata_insert_data);
00189 PHP_FUNCTION(dom_characterdata_delete_data);
00190 PHP_FUNCTION(dom_characterdata_replace_data);
00191 
00192 /* domattr methods */
00193 PHP_FUNCTION(dom_attr_is_id);
00194 PHP_METHOD(domattr, __construct);
00195 
00196 /* domelement methods */
00197 PHP_FUNCTION(dom_element_get_attribute);
00198 PHP_FUNCTION(dom_element_set_attribute);
00199 PHP_FUNCTION(dom_element_remove_attribute);
00200 PHP_FUNCTION(dom_element_get_attribute_node);
00201 PHP_FUNCTION(dom_element_set_attribute_node);
00202 PHP_FUNCTION(dom_element_remove_attribute_node);
00203 PHP_FUNCTION(dom_element_get_elements_by_tag_name);
00204 PHP_FUNCTION(dom_element_get_attribute_ns);
00205 PHP_FUNCTION(dom_element_set_attribute_ns);
00206 PHP_FUNCTION(dom_element_remove_attribute_ns);
00207 PHP_FUNCTION(dom_element_get_attribute_node_ns);
00208 PHP_FUNCTION(dom_element_set_attribute_node_ns);
00209 PHP_FUNCTION(dom_element_get_elements_by_tag_name_ns);
00210 PHP_FUNCTION(dom_element_has_attribute);
00211 PHP_FUNCTION(dom_element_has_attribute_ns);
00212 PHP_FUNCTION(dom_element_set_id_attribute);
00213 PHP_FUNCTION(dom_element_set_id_attribute_ns);
00214 PHP_FUNCTION(dom_element_set_id_attribute_node);
00215 PHP_METHOD(domelement, __construct);
00216 
00217 /* domtext methods */
00218 PHP_FUNCTION(dom_text_split_text);
00219 PHP_FUNCTION(dom_text_is_whitespace_in_element_content);
00220 PHP_FUNCTION(dom_text_replace_whole_text);
00221 PHP_METHOD(domtext, __construct);
00222 
00223 /* domcomment methods */
00224 PHP_METHOD(domcomment, __construct);
00225 
00226 /* domtypeinfo methods */
00227 
00228 /* domuserdatahandler methods */
00229 PHP_FUNCTION(dom_userdatahandler_handle);
00230 
00231 /* domdomerror methods */
00232 
00233 /* domerrorhandler methods */
00234 PHP_FUNCTION(dom_domerrorhandler_handle_error);
00235 
00236 /* domlocator methods */
00237 
00238 /* domconfiguration methods */
00239 PHP_FUNCTION(dom_domconfiguration_set_parameter);
00240 PHP_FUNCTION(dom_domconfiguration_get_parameter);
00241 PHP_FUNCTION(dom_domconfiguration_can_set_parameter);
00242 
00243 /* domcdatasection methods */
00244 PHP_METHOD(domcdatasection, __construct);
00245 
00246 /* domdocumenttype methods */
00247 
00248 /* domnotation methods */
00249 
00250 /* domentity methods */
00251 
00252 /* domentityreference methods */
00253 PHP_METHOD(domentityreference, __construct);
00254 
00255 /* domprocessinginstruction methods */
00256 PHP_METHOD(domprocessinginstruction, __construct);
00257 
00258 /* string_extend methods */
00259 PHP_FUNCTION(dom_string_extend_find_offset16);
00260 PHP_FUNCTION(dom_string_extend_find_offset32);
00261 
00262 #if defined(LIBXML_XPATH_ENABLED)
00263 /* xpath methods */
00264 PHP_METHOD(domxpath, __construct);
00265 PHP_FUNCTION(dom_xpath_register_ns);
00266 PHP_FUNCTION(dom_xpath_query);
00267 PHP_FUNCTION(dom_xpath_evaluate);
00268 PHP_FUNCTION(dom_xpath_register_php_functions);
00269 #endif
00270 
00271 #endif /* DOM_FE_H */
00272 
00273 /*
00274  * Local variables:
00275  * tab-width: 4
00276  * c-basic-offset: 4
00277  * End:
00278  * vim600: noet sw=4 ts=4 fdm=marker
00279  * vim<600: noet sw=4 ts=4
00280  */