forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dom.php
214 lines (180 loc) · 5.53 KB
/
dom.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<?php
// Start of dom v.20031129
/**
* (PHP 5)<br/>
* Gets a <b>DOMElement</b> object from a
<b>SimpleXMLElement</b> object
* @link http://php.net/manual/en/function.dom-import-simplexml.php
* @param SimpleXMLElement $node <p>
* The <b>SimpleXMLElement</b> node.
* </p>
* @return DOMElement The <b>DOMElement</b> node added or <b>FALSE</b> if any errors occur.
*/
function dom_import_simplexml (SimpleXMLElement $node) {}
/**
* Node is a <b>DOMElement</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_ELEMENT_NODE', 1);
/**
* Node is a <b>DOMAttr</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_ATTRIBUTE_NODE', 2);
/**
* Node is a <b>DOMText</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_TEXT_NODE', 3);
/**
* Node is a <b>DOMCharacterData</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_CDATA_SECTION_NODE', 4);
/**
* Node is a <b>DOMEntityReference</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_ENTITY_REF_NODE', 5);
/**
* Node is a <b>DOMEntity</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_ENTITY_NODE', 6);
/**
* Node is a <b>DOMProcessingInstruction</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_PI_NODE', 7);
/**
* Node is a <b>DOMComment</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_COMMENT_NODE', 8);
/**
* Node is a <b>DOMDocument</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_DOCUMENT_NODE', 9);
/**
* Node is a <b>DOMDocumentType</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_DOCUMENT_TYPE_NODE', 10);
/**
* Node is a <b>DOMDocumentFragment</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_DOCUMENT_FRAG_NODE', 11);
/**
* Node is a <b>DOMNotation</b>
* @link http://php.net/manual/en/dom.constants.php
*/
define ('XML_NOTATION_NODE', 12);
define ('XML_HTML_DOCUMENT_NODE', 13);
define ('XML_DTD_NODE', 14);
define ('XML_ELEMENT_DECL_NODE', 15);
define ('XML_ATTRIBUTE_DECL_NODE', 16);
define ('XML_ENTITY_DECL_NODE', 17);
define ('XML_NAMESPACE_DECL_NODE', 18);
define ('XML_LOCAL_NAMESPACE', 18);
define ('XML_ATTRIBUTE_CDATA', 1);
define ('XML_ATTRIBUTE_ID', 2);
define ('XML_ATTRIBUTE_IDREF', 3);
define ('XML_ATTRIBUTE_IDREFS', 4);
define ('XML_ATTRIBUTE_ENTITY', 6);
define ('XML_ATTRIBUTE_NMTOKEN', 7);
define ('XML_ATTRIBUTE_NMTOKENS', 8);
define ('XML_ATTRIBUTE_ENUMERATION', 9);
define ('XML_ATTRIBUTE_NOTATION', 10);
/**
* Error code not part of the DOM specification. Meant for PHP errors.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_PHP_ERR', 0);
/**
* If index or size is negative, or greater than the allowed value.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_INDEX_SIZE_ERR', 1);
/**
* If the specified range of text does not fit into a
* <b>DOMString</b>.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOMSTRING_SIZE_ERR', 2);
/**
* If any node is inserted somewhere it doesn't belong
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_HIERARCHY_REQUEST_ERR', 3);
/**
* If a node is used in a different document than the one that created it.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_WRONG_DOCUMENT_ERR', 4);
/**
* If an invalid or illegal character is specified, such as in a name.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_INVALID_CHARACTER_ERR', 5);
/**
* If data is specified for a node which does not support data.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_NO_DATA_ALLOWED_ERR', 6);
/**
* If an attempt is made to modify an object where modifications are not allowed.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_NO_MODIFICATION_ALLOWED_ERR', 7);
/**
* If an attempt is made to reference a node in a context where it does not exist.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_NOT_FOUND_ERR', 8);
/**
* If the implementation does not support the requested type of object or operation.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_NOT_SUPPORTED_ERR', 9);
/**
* If an attempt is made to add an attribute that is already in use elsewhere.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_INUSE_ATTRIBUTE_ERR', 10);
/**
* If an attempt is made to use an object that is not, or is no longer, usable.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_INVALID_STATE_ERR', 11);
/**
* If an invalid or illegal string is specified.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_SYNTAX_ERR', 12);
/**
* If an attempt is made to modify the type of the underlying object.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_INVALID_MODIFICATION_ERR', 13);
/**
* If an attempt is made to create or change an object in a way which is
* incorrect with regard to namespaces.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_NAMESPACE_ERR', 14);
/**
* If a parameter or an operation is not supported by the underlying object.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_INVALID_ACCESS_ERR', 15);
/**
* If a call to a method such as insertBefore or removeChild would make the Node
* invalid with respect to "partial validity", this exception would be raised and
* the operation would not be done.
* @link http://php.net/manual/en/dom.constants.php
*/
define ('DOM_VALIDATION_ERR', 16);
// End of dom v.20031129
?>