xref: /PHP-7.3/ext/dom/dom_properties.h (revision 8d3f8ca1)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2018 The PHP Group                                |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.01 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_01.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 #ifndef DOM_PROPERTIES_H
21 #define DOM_PROPERTIES_H
22 
23 /* attr properties */
24 int dom_attr_name_read(dom_object *obj, zval *retval);
25 int dom_attr_specified_read(dom_object *obj, zval *retval);
26 int dom_attr_value_read(dom_object *obj, zval *retval);
27 int dom_attr_value_write(dom_object *obj, zval *newval);
28 int dom_attr_owner_element_read(dom_object *obj, zval *retval);
29 int dom_attr_schema_type_info_read(dom_object *obj, zval *retval);
30 
31 /* characterdata properties */
32 int dom_characterdata_data_read(dom_object *obj, zval *retval);
33 int dom_characterdata_data_write(dom_object *obj, zval *newval);
34 int dom_characterdata_length_read(dom_object *obj, zval *retval);
35 
36 /* document properties */
37 int dom_document_doctype_read(dom_object *obj, zval *retval);
38 int dom_document_implementation_read(dom_object *obj, zval *retval);
39 int dom_document_document_element_read(dom_object *obj, zval *retval);
40 int dom_document_actual_encoding_read(dom_object *obj, zval *retval);
41 int dom_document_actual_encoding_write(dom_object *obj, zval *newval);
42 int dom_document_encoding_read(dom_object *obj, zval *retval);
43 int dom_document_encoding_write(dom_object *obj, zval *newval);
44 int dom_document_standalone_read(dom_object *obj, zval *retval);
45 int dom_document_standalone_write(dom_object *obj, zval *newval);
46 int dom_document_version_read(dom_object *obj, zval *retval);
47 int dom_document_version_write(dom_object *obj, zval *newval);
48 int dom_document_strict_error_checking_read(dom_object *obj, zval *retval);
49 int dom_document_strict_error_checking_write(dom_object *obj, zval *newval);
50 int dom_document_document_uri_read(dom_object *obj, zval *retval);
51 int dom_document_document_uri_write(dom_object *obj, zval *newval);
52 int dom_document_config_read(dom_object *obj, zval *retval);
53 int dom_document_format_output_read(dom_object *obj, zval *retval);
54 int dom_document_format_output_write(dom_object *obj, zval *newval);
55 int	dom_document_validate_on_parse_read(dom_object *obj, zval *retval);
56 int dom_document_validate_on_parse_write(dom_object *obj, zval *newval);
57 int dom_document_resolve_externals_read(dom_object *obj, zval *retval);
58 int dom_document_resolve_externals_write(dom_object *obj, zval *newval);
59 int dom_document_preserve_whitespace_read(dom_object *obj, zval *retval);
60 int dom_document_preserve_whitespace_write(dom_object *obj, zval *newval);
61 int dom_document_recover_read(dom_object *obj, zval *retval);
62 int dom_document_recover_write(dom_object *obj, zval *newval);
63 int dom_document_substitue_entities_read(dom_object *obj, zval *retval);
64 int dom_document_substitue_entities_write(dom_object *obj, zval *newval);
65 
66 /* documenttype properties */
67 int dom_documenttype_name_read(dom_object *obj, zval *retval);
68 int dom_documenttype_entities_read(dom_object *obj, zval *retval);
69 int dom_documenttype_notations_read(dom_object *obj, zval *retval);
70 int dom_documenttype_public_id_read(dom_object *obj, zval *retval);
71 int dom_documenttype_system_id_read(dom_object *obj, zval *retval);
72 int dom_documenttype_internal_subset_read(dom_object *obj, zval *retval);
73 
74 /* domerror properties */
75 int dom_domerror_severity_read(dom_object *obj, zval *retval);
76 int dom_domerror_message_read(dom_object *obj, zval *retval);
77 int dom_domerror_type_read(dom_object *obj, zval *retval);
78 int dom_domerror_related_exception_read(dom_object *obj, zval *retval);
79 int dom_domerror_related_data_read(dom_object *obj, zval *retval);
80 int dom_domerror_location_read(dom_object *obj, zval *retval);
81 
82 /* domimplementationlist properties */
83 int dom_domimplementationlist_length_read(dom_object *obj, zval *retval);
84 
85 /* domlocator properties */
86 int dom_domlocator_line_number_read(dom_object *obj, zval *retval);
87 int dom_domlocator_column_number_read(dom_object *obj, zval *retval);
88 int dom_domlocator_offset_read(dom_object *obj, zval *retval);
89 int dom_domlocator_related_node_read(dom_object *obj, zval *retval);
90 int dom_domlocator_uri_read(dom_object *obj, zval *retval);
91 
92 /* domstringlist properties */
93 int dom_domstringlist_length_read(dom_object *obj, zval *retval);
94 
95 /* element properties */
96 int dom_element_tag_name_read(dom_object *obj, zval *retval);
97 int dom_element_schema_type_info_read(dom_object *obj, zval *retval);
98 
99 /* entity properties */
100 int dom_entity_public_id_read(dom_object *obj, zval *retval);
101 int dom_entity_system_id_read(dom_object *obj, zval *retval);
102 int dom_entity_notation_name_read(dom_object *obj, zval *retval);
103 int dom_entity_actual_encoding_read(dom_object *obj, zval *retval);
104 int dom_entity_actual_encoding_write(dom_object *obj, zval *newval);
105 int dom_entity_encoding_read(dom_object *obj, zval *retval);
106 int dom_entity_encoding_write(dom_object *obj, zval *newval);
107 int dom_entity_version_read(dom_object *obj, zval *retval);
108 int dom_entity_version_write(dom_object *obj, zval *newval);
109 
110 /* namednodemap properties */
111 int dom_namednodemap_length_read(dom_object *obj, zval *retval);
112 
113 /* namelist properties */
114 int dom_namelist_length_read(dom_object *obj, zval *retval);
115 
116 /* node properties */
117 int dom_node_node_name_read(dom_object *obj, zval *retval);
118 int dom_node_node_value_read(dom_object *obj, zval *retval);
119 int dom_node_node_value_write(dom_object *obj, zval *newval);
120 int dom_node_node_type_read(dom_object *obj, zval *retval);
121 int dom_node_parent_node_read(dom_object *obj, zval *retval);
122 int dom_node_child_nodes_read(dom_object *obj, zval *retval);
123 int dom_node_first_child_read(dom_object *obj, zval *retval);
124 int dom_node_last_child_read(dom_object *obj, zval *retval);
125 int dom_node_previous_sibling_read(dom_object *obj, zval *retval);
126 int dom_node_next_sibling_read(dom_object *obj, zval *retval);
127 int dom_node_attributes_read(dom_object *obj, zval *retval);
128 int dom_node_owner_document_read(dom_object *obj, zval *retval);
129 int dom_node_namespace_uri_read(dom_object *obj, zval *retval);
130 int dom_node_prefix_read(dom_object *obj, zval *retval);
131 int dom_node_prefix_write(dom_object *obj, zval *newval);
132 int dom_node_local_name_read(dom_object *obj, zval *retval);
133 int dom_node_base_uri_read(dom_object *obj, zval *retval);
134 int dom_node_text_content_read(dom_object *obj, zval *retval);
135 int dom_node_text_content_write(dom_object *obj, zval *newval);
136 
137 /* nodelist properties */
138 int dom_nodelist_length_read(dom_object *obj, zval *retval);
139 xmlNodePtr dom_nodelist_xml_item(dom_nnodemap_object *objmap, long index);
140 xmlNodePtr dom_nodelist_baseobj_item(dom_nnodemap_object *objmap, long index);
141 
142 /* notation properties */
143 int dom_notation_public_id_read(dom_object *obj, zval *retval);
144 int dom_notation_system_id_read(dom_object *obj, zval *retval);
145 
146 /* processinginstruction properties */
147 int dom_processinginstruction_target_read(dom_object *obj, zval *retval);
148 int dom_processinginstruction_data_read(dom_object *obj, zval *retval);
149 int dom_processinginstruction_data_write(dom_object *obj, zval *newval);
150 
151 /* text properties */
152 int dom_text_whole_text_read(dom_object *obj, zval *retval);
153 
154 /* typeinfo properties */
155 int dom_typeinfo_type_name_read(dom_object *obj, zval *retval);
156 int dom_typeinfo_type_namespace_read(dom_object *obj, zval *retval);
157 
158 #if defined(LIBXML_XPATH_ENABLED)
159 /* xpath properties */
160 int dom_xpath_document_read(dom_object *obj, zval *retval);
161 #endif
162 
163 #endif /* DOM_PROPERTIERS_H */
164 
165 /*
166  * Local variables:
167  * tab-width: 4
168  * c-basic-offset: 4
169  * End:
170  * vim600: noet sw=4 ts=4 fdm=marker
171  * vim<600: noet sw=4 ts=4
172  */
173