xref: /PHP-8.2/ext/dom/dom_properties.h (revision e878b9f3)
1 /*
2    +----------------------------------------------------------------------+
3    | Copyright (c) The PHP Group                                          |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | https://www.php.net/license/3_01.txt                                 |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Authors: Christian Stocker <chregu@php.net>                          |
14    |          Rob Richards <rrichards@php.net>                            |
15    +----------------------------------------------------------------------+
16 */
17 
18 #ifndef DOM_PROPERTIES_H
19 #define DOM_PROPERTIES_H
20 
21 /* attr properties */
22 int dom_attr_name_read(dom_object *obj, zval *retval);
23 int dom_attr_specified_read(dom_object *obj, zval *retval);
24 int dom_attr_value_read(dom_object *obj, zval *retval);
25 int dom_attr_value_write(dom_object *obj, zval *newval);
26 int dom_attr_owner_element_read(dom_object *obj, zval *retval);
27 int dom_attr_schema_type_info_read(dom_object *obj, zval *retval);
28 
29 /* characterdata properties */
30 int dom_characterdata_data_read(dom_object *obj, zval *retval);
31 int dom_characterdata_data_write(dom_object *obj, zval *newval);
32 int dom_characterdata_length_read(dom_object *obj, zval *retval);
33 
34 /* document properties */
35 int dom_document_doctype_read(dom_object *obj, zval *retval);
36 int dom_document_implementation_read(dom_object *obj, zval *retval);
37 int dom_document_document_element_read(dom_object *obj, zval *retval);
38 int dom_document_actual_encoding_read(dom_object *obj, zval *retval);
39 int dom_document_actual_encoding_write(dom_object *obj, zval *newval);
40 int dom_document_encoding_read(dom_object *obj, zval *retval);
41 int dom_document_encoding_write(dom_object *obj, zval *newval);
42 int dom_document_standalone_read(dom_object *obj, zval *retval);
43 int dom_document_standalone_write(dom_object *obj, zval *newval);
44 int dom_document_version_read(dom_object *obj, zval *retval);
45 int dom_document_version_write(dom_object *obj, zval *newval);
46 int dom_document_strict_error_checking_read(dom_object *obj, zval *retval);
47 int dom_document_strict_error_checking_write(dom_object *obj, zval *newval);
48 int dom_document_document_uri_read(dom_object *obj, zval *retval);
49 int dom_document_document_uri_write(dom_object *obj, zval *newval);
50 int dom_document_config_read(dom_object *obj, zval *retval);
51 int dom_document_format_output_read(dom_object *obj, zval *retval);
52 int dom_document_format_output_write(dom_object *obj, zval *newval);
53 int	dom_document_validate_on_parse_read(dom_object *obj, zval *retval);
54 int dom_document_validate_on_parse_write(dom_object *obj, zval *newval);
55 int dom_document_resolve_externals_read(dom_object *obj, zval *retval);
56 int dom_document_resolve_externals_write(dom_object *obj, zval *newval);
57 int dom_document_preserve_whitespace_read(dom_object *obj, zval *retval);
58 int dom_document_preserve_whitespace_write(dom_object *obj, zval *newval);
59 int dom_document_recover_read(dom_object *obj, zval *retval);
60 int dom_document_recover_write(dom_object *obj, zval *newval);
61 int dom_document_substitue_entities_read(dom_object *obj, zval *retval);
62 int dom_document_substitue_entities_write(dom_object *obj, zval *newval);
63 
64 /* documenttype properties */
65 int dom_documenttype_name_read(dom_object *obj, zval *retval);
66 int dom_documenttype_entities_read(dom_object *obj, zval *retval);
67 int dom_documenttype_notations_read(dom_object *obj, zval *retval);
68 int dom_documenttype_public_id_read(dom_object *obj, zval *retval);
69 int dom_documenttype_system_id_read(dom_object *obj, zval *retval);
70 int dom_documenttype_internal_subset_read(dom_object *obj, zval *retval);
71 
72 /* element properties */
73 int dom_element_tag_name_read(dom_object *obj, zval *retval);
74 int dom_element_schema_type_info_read(dom_object *obj, zval *retval);
75 
76 /* entity properties */
77 int dom_entity_public_id_read(dom_object *obj, zval *retval);
78 int dom_entity_system_id_read(dom_object *obj, zval *retval);
79 int dom_entity_notation_name_read(dom_object *obj, zval *retval);
80 int dom_entity_actual_encoding_read(dom_object *obj, zval *retval);
81 int dom_entity_encoding_read(dom_object *obj, zval *retval);
82 int dom_entity_version_read(dom_object *obj, zval *retval);
83 
84 /* entity reference properties */
85 int dom_entity_reference_child_read(dom_object *obj, zval *retval);
86 int dom_entity_reference_text_content_read(dom_object *obj, zval *retval);
87 int dom_entity_reference_child_nodes_read(dom_object *obj, zval *retval);
88 
89 /* namednodemap properties */
90 int dom_namednodemap_length_read(dom_object *obj, zval *retval);
91 
92 /* parent node properties */
93 int dom_parent_node_first_element_child_read(dom_object *obj, zval *retval);
94 int dom_parent_node_last_element_child_read(dom_object *obj, zval *retval);
95 int dom_parent_node_child_element_count(dom_object *obj, zval *retval);
96 
97 /* node properties */
98 int dom_node_node_name_read(dom_object *obj, zval *retval);
99 int dom_node_node_value_read(dom_object *obj, zval *retval);
100 int dom_node_node_value_write(dom_object *obj, zval *newval);
101 int dom_node_node_type_read(dom_object *obj, zval *retval);
102 int dom_node_parent_node_read(dom_object *obj, zval *retval);
103 int dom_node_child_nodes_read(dom_object *obj, zval *retval);
104 int dom_node_first_child_read(dom_object *obj, zval *retval);
105 int dom_node_last_child_read(dom_object *obj, zval *retval);
106 int dom_node_previous_sibling_read(dom_object *obj, zval *retval);
107 int dom_node_next_sibling_read(dom_object *obj, zval *retval);
108 int dom_node_previous_element_sibling_read(dom_object *obj, zval *retval);
109 int dom_node_next_element_sibling_read(dom_object *obj, zval *retval);
110 int dom_node_attributes_read(dom_object *obj, zval *retval);
111 int dom_node_owner_document_read(dom_object *obj, zval *retval);
112 int dom_node_namespace_uri_read(dom_object *obj, zval *retval);
113 int dom_node_prefix_read(dom_object *obj, zval *retval);
114 int dom_node_prefix_write(dom_object *obj, zval *newval);
115 int dom_node_local_name_read(dom_object *obj, zval *retval);
116 int dom_node_base_uri_read(dom_object *obj, zval *retval);
117 int dom_node_text_content_read(dom_object *obj, zval *retval);
118 int dom_node_text_content_write(dom_object *obj, zval *newval);
119 
120 /* nodelist properties */
121 int dom_nodelist_length_read(dom_object *obj, zval *retval);
122 xmlNodePtr dom_nodelist_xml_item(dom_nnodemap_object *objmap, long index);
123 xmlNodePtr dom_nodelist_baseobj_item(dom_nnodemap_object *objmap, long index);
124 
125 /* notation properties */
126 int dom_notation_public_id_read(dom_object *obj, zval *retval);
127 int dom_notation_system_id_read(dom_object *obj, zval *retval);
128 
129 /* processinginstruction properties */
130 int dom_processinginstruction_target_read(dom_object *obj, zval *retval);
131 int dom_processinginstruction_data_read(dom_object *obj, zval *retval);
132 int dom_processinginstruction_data_write(dom_object *obj, zval *newval);
133 
134 /* text properties */
135 int dom_text_whole_text_read(dom_object *obj, zval *retval);
136 
137 #ifdef LIBXML_XPATH_ENABLED
138 /* xpath properties */
139 int dom_xpath_document_read(dom_object *obj, zval *retval);
140 int dom_xpath_register_node_ns_read(dom_object *obj, zval *retval);
141 int dom_xpath_register_node_ns_write(dom_object *obj, zval *newval);
142 #endif
143 
144 #endif /* DOM_PROPERTIES_H */
145