Debian Codegraph @

codelitephp/resources/cc/dom.php

raw
1 <?php
2
3 // Start of dom v.20031129
4
5 class DOMException extends Exception {
6 protected $message;
7 protected $file;
8 protected $line;
9 public $code;
10
11
12 final private function __clone () {}
13
14 /**
15 * @param message[optional]
16 * @param code[optional]
17 * @param previous[optional]
18 */
19 public function __construct ($message, $code, $previous) {}
20
21 final public function getMessage () {}
22
23 final public function getCode () {}
24
25 final public function getFile () {}
26
27 final public function getLine () {}
28
29 final public function getTrace () {}
30
31 final public function getPrevious () {}
32
33 final public function getTraceAsString () {}
34
35 public function __toString () {}
36
37 }
38
39 class DOMStringList {
40
41 /**
42 * @param index
43 */
44 public function item ($index) {}
45
46 }
47
48 class DOMNameList {
49
50 /**
51 * @param index
52 */
53 public function getName ($index) {}
54
55 /**
56 * @param index
57 */
58 public function getNamespaceURI ($index) {}
59
60 }
61
62 class DOMImplementationList {
63
64 /**
65 * @param index
66 */
67 public function item ($index) {}
68
69 }
70
71 class DOMImplementationSource {
72
73 /**
74 * @param features
75 */
76 public function getDomimplementation ($features) {}
77
78 /**
79 * @param features
80 */
81 public function getDomimplementations ($features) {}
82
83 }
84
85 class DOMImplementation {
86
87 /**
88 * @param feature
89 * @param version
90 */
91 public function getFeature ($feature, $version) {}
92
93 /**
94 * Test if the DOM implementation implements a specific feature
95 * @link http://www.php.net/manual/en/domimplementation.hasfeature.php
96 * @param feature string <p>
97 * The feature to test.
98 * </p>
99 * @param version string <p>
100 * The version number of the feature to test. In
101 * level 2, this can be either 2.0 or
102 * 1.0.
103 * </p>
104 * @return bool Returns true on success, false on failure.
105 */
106 public function hasFeature ($feature, $version) {}
107
108 /**
109 * Creates an empty DOMDocumentType object
110 * @link http://www.php.net/manual/en/domimplementation.createdocumenttype.php
111 * @param qualifiedName string[optional] <p>
112 * The qualified name of the document type to create.
113 * </p>
114 * @param publicId string[optional] <p>
115 * The external subset public identifier.
116 * </p>
117 * @param systemId string[optional] <p>
118 * The external subset system identifier.
119 * </p>
120 * @return DOMDocumentType A new DOMDocumentType node with its
121 * ownerDocument set to &null;.
122 */
123 public function createDocumentType ($qualifiedName = null, $publicId = null, $systemId = null) {}
124
125 /**
126 * Creates a DOMDocument object of the specified type with its document element
127 * @link http://www.php.net/manual/en/domimplementation.createdocument.php
128 * @param namespaceURI string[optional] <p>
129 * The namespace URI of the document element to create.
130 * </p>
131 * @param qualifiedName string[optional] <p>
132 * The qualified name of the document element to create.
133 * </p>
134 * @param doctype DOMDocumentType[optional] <p>
135 * The type of document to create or &null;.
136 * </p>
137 * @return DOMDocument A new DOMDocument object. If
138 * namespaceURI, qualifiedName,
139 * and doctype are null, the returned
140 * DOMDocument is empty with no document element
141 */
142 public function createDocument ($namespaceURI = null, $qualifiedName = null, DOMDocumentType $doctype = null) {}
143
144 }
145
146 class DOMNode {
147
148 /**
149 * Adds a new child before a reference node
150 * @link http://www.php.net/manual/en/domnode.insertbefore.php
151 * @param newnode DOMNode <p>
152 * The new node.
153 * </p>
154 * @param refnode DOMNode[optional] <p>
155 * The reference node. If not supplied, newnode is
156 * appended to the children.
157 * </p>
158 * @return DOMNode The inserted node.
159 */
160 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
161
162 /**
163 * Replaces a child
164 * @link http://www.php.net/manual/en/domnode.replacechild.php
165 * @param newnode DOMNode <p>
166 * The new node. It must be a member of the target document, i.e.
167 * created by one of the DOMDocument->createXXX() methods or imported in
168 * the document by .
169 * </p>
170 * @param oldnode DOMNode <p>
171 * The old node.
172 * </p>
173 * @return DOMNode The old node or false if an error occur.
174 */
175 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
176
177 /**
178 * Removes child from list of children
179 * @link http://www.php.net/manual/en/domnode.removechild.php
180 * @param oldnode DOMNode <p>
181 * The removed child.
182 * </p>
183 * @return DOMNode If the child could be removed the function returns the old child.
184 */
185 public function removeChild (DOMNode $oldnode) {}
186
187 /**
188 * Adds new child at the end of the children
189 * @link http://www.php.net/manual/en/domnode.appendchild.php
190 * @param newnode DOMNode <p>
191 * The appended child.
192 * </p>
193 * @return DOMNode The node added.
194 */
195 public function appendChild (DOMNode $newnode) {}
196
197 /**
198 * Checks if node has children
199 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
200 * @return bool Returns true on success, false on failure.
201 */
202 public function hasChildNodes () {}
203
204 /**
205 * Clones a node
206 * @link http://www.php.net/manual/en/domnode.clonenode.php
207 * @param deep bool[optional] <p>
208 * Indicates whether to copy all descendant nodes. This parameter is
209 * defaulted to false.
210 * </p>
211 * @return DOMNode The cloned node.
212 */
213 public function cloneNode ($deep = null) {}
214
215 /**
216 * Normalizes the node
217 * @link http://www.php.net/manual/en/domnode.normalize.php
218 * @return void
219 */
220 public function normalize () {}
221
222 /**
223 * Checks if feature is supported for specified version
224 * @link http://www.php.net/manual/en/domnode.issupported.php
225 * @param feature string <p>
226 * The feature to test. See the example of
227 * DOMImplementation::hasFeature for a
228 * list of features.
229 * </p>
230 * @param version string <p>
231 * The version number of the feature to test.
232 * </p>
233 * @return bool Returns true on success, false on failure.
234 */
235 public function isSupported ($feature, $version) {}
236
237 /**
238 * Checks if node has attributes
239 * @link http://www.php.net/manual/en/domnode.hasattributes.php
240 * @return bool Returns true on success, false on failure.
241 */
242 public function hasAttributes () {}
243
244 /**
245 * @param other DOMNode
246 */
247 public function compareDocumentPosition (DOMNode $other) {}
248
249 /**
250 * Indicates if two nodes are the same node
251 * @link http://www.php.net/manual/en/domnode.issamenode.php
252 * @param node DOMNode <p>
253 * The compared node.
254 * </p>
255 * @return bool Returns true on success, false on failure.
256 */
257 public function isSameNode (DOMNode $node) {}
258
259 /**
260 * Gets the namespace prefix of the node based on the namespace URI
261 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
262 * @param namespaceURI string <p>
263 * The namespace URI.
264 * </p>
265 * @return string The prefix of the namespace.
266 */
267 public function lookupPrefix ($namespaceURI) {}
268
269 /**
270 * Checks if the specified namespaceURI is the default namespace or not
271 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
272 * @param namespaceURI string <p>
273 * The namespace URI to look for.
274 * </p>
275 * @return bool Return true if namespaceURI is the default
276 * namespace, false otherwise.
277 */
278 public function isDefaultNamespace ($namespaceURI) {}
279
280 /**
281 * Gets the namespace URI of the node based on the prefix
282 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
283 * @param prefix string <p>
284 * The prefix of the namespace.
285 * </p>
286 * @return string The namespace URI of the node.
287 */
288 public function lookupNamespaceUri ($prefix) {}
289
290 /**
291 * @param arg DOMNode
292 */
293 public function isEqualNode (DOMNode $arg) {}
294
295 /**
296 * @param feature
297 * @param version
298 */
299 public function getFeature ($feature, $version) {}
300
301 /**
302 * @param key
303 * @param data
304 * @param handler
305 */
306 public function setUserData ($key, $data, $handler) {}
307
308 /**
309 * @param key
310 */
311 public function getUserData ($key) {}
312
313 /**
314 * Get an XPath for a node
315 * @link http://www.php.net/manual/en/domnode.getnodepath.php
316 * @return string a string containing the XPath, or &null; in case of an error.
317 */
318 public function getNodePath () {}
319
320 /**
321 * Get line number for a node
322 * @link http://www.php.net/manual/en/domnode.getlineno.php
323 * @return int Always returns the line number where the node was defined in.
324 */
325 public function getLineNo () {}
326
327 /**
328 * Canonicalize nodes to a string
329 * @link http://www.php.net/manual/en/domnode.c14n.php
330 * @param exclusive bool[optional] <p>
331 * Enable exclusive parsing of only the nodes matched by the provided
332 * xpath or namespace prefixes.
333 * </p>
334 * @param with_comments bool[optional] <p>
335 * Retain comments in output.
336 * </p>
337 * @param xpath array[optional] <p>
338 * An array of xpaths to filter the nodes by.
339 * </p>
340 * @param ns_prefixes array[optional] <p>
341 * An array of namespace prefixes to filter the nodes by.
342 * </p>
343 * @return string canonicalized nodes as a string&return.falseforfailure;
344 */
345 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
346
347 /**
348 * Canonicalize nodes to a file
349 * @link http://www.php.net/manual/en/domnode.c14nfile.php
350 * @param uri string <p>
351 * Path to write the output to.
352 * </p>
353 * @param exclusive bool[optional] <p>
354 * Enable exclusive parsing of only the nodes matched by the provided
355 * xpath or namespace prefixes.
356 * </p>
357 * @param with_comments bool[optional] <p>
358 * Retain comments in output.
359 * </p>
360 * @param xpath array[optional] <p>
361 * An array of xpaths to filter the nodes by.
362 * </p>
363 * @param ns_prefixes array[optional] <p>
364 * An array of namespace prefixes to filter the nodes by.
365 * </p>
366 * @return int Number of bytes written&return.falseforfailure;
367 */
368 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
369
370 }
371
372 class DOMNameSpaceNode {
373 }
374
375 class DOMDocumentFragment extends DOMNode {
376
377 public function __construct () {}
378
379 /**
380 * Append raw XML data
381 * @link http://www.php.net/manual/en/domdocumentfragment.appendxml.php
382 * @param data string <p>
383 * XML to append.
384 * </p>
385 * @return bool Returns true on success, false on failure.
386 */
387 public function appendXML ($data) {}
388
389 /**
390 * Adds a new child before a reference node
391 * @link http://www.php.net/manual/en/domnode.insertbefore.php
392 * @param newnode DOMNode <p>
393 * The new node.
394 * </p>
395 * @param refnode DOMNode[optional] <p>
396 * The reference node. If not supplied, newnode is
397 * appended to the children.
398 * </p>
399 * @return DOMNode The inserted node.
400 */
401 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
402
403 /**
404 * Replaces a child
405 * @link http://www.php.net/manual/en/domnode.replacechild.php
406 * @param newnode DOMNode <p>
407 * The new node. It must be a member of the target document, i.e.
408 * created by one of the DOMDocument->createXXX() methods or imported in
409 * the document by .
410 * </p>
411 * @param oldnode DOMNode <p>
412 * The old node.
413 * </p>
414 * @return DOMNode The old node or false if an error occur.
415 */
416 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
417
418 /**
419 * Removes child from list of children
420 * @link http://www.php.net/manual/en/domnode.removechild.php
421 * @param oldnode DOMNode <p>
422 * The removed child.
423 * </p>
424 * @return DOMNode If the child could be removed the function returns the old child.
425 */
426 public function removeChild (DOMNode $oldnode) {}
427
428 /**
429 * Adds new child at the end of the children
430 * @link http://www.php.net/manual/en/domnode.appendchild.php
431 * @param newnode DOMNode <p>
432 * The appended child.
433 * </p>
434 * @return DOMNode The node added.
435 */
436 public function appendChild (DOMNode $newnode) {}
437
438 /**
439 * Checks if node has children
440 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
441 * @return bool Returns true on success, false on failure.
442 */
443 public function hasChildNodes () {}
444
445 /**
446 * Clones a node
447 * @link http://www.php.net/manual/en/domnode.clonenode.php
448 * @param deep bool[optional] <p>
449 * Indicates whether to copy all descendant nodes. This parameter is
450 * defaulted to false.
451 * </p>
452 * @return DOMNode The cloned node.
453 */
454 public function cloneNode ($deep = null) {}
455
456 /**
457 * Normalizes the node
458 * @link http://www.php.net/manual/en/domnode.normalize.php
459 * @return void
460 */
461 public function normalize () {}
462
463 /**
464 * Checks if feature is supported for specified version
465 * @link http://www.php.net/manual/en/domnode.issupported.php
466 * @param feature string <p>
467 * The feature to test. See the example of
468 * DOMImplementation::hasFeature for a
469 * list of features.
470 * </p>
471 * @param version string <p>
472 * The version number of the feature to test.
473 * </p>
474 * @return bool Returns true on success, false on failure.
475 */
476 public function isSupported ($feature, $version) {}
477
478 /**
479 * Checks if node has attributes
480 * @link http://www.php.net/manual/en/domnode.hasattributes.php
481 * @return bool Returns true on success, false on failure.
482 */
483 public function hasAttributes () {}
484
485 /**
486 * @param other DOMNode
487 */
488 public function compareDocumentPosition (DOMNode $other) {}
489
490 /**
491 * Indicates if two nodes are the same node
492 * @link http://www.php.net/manual/en/domnode.issamenode.php
493 * @param node DOMNode <p>
494 * The compared node.
495 * </p>
496 * @return bool Returns true on success, false on failure.
497 */
498 public function isSameNode (DOMNode $node) {}
499
500 /**
501 * Gets the namespace prefix of the node based on the namespace URI
502 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
503 * @param namespaceURI string <p>
504 * The namespace URI.
505 * </p>
506 * @return string The prefix of the namespace.
507 */
508 public function lookupPrefix ($namespaceURI) {}
509
510 /**
511 * Checks if the specified namespaceURI is the default namespace or not
512 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
513 * @param namespaceURI string <p>
514 * The namespace URI to look for.
515 * </p>
516 * @return bool Return true if namespaceURI is the default
517 * namespace, false otherwise.
518 */
519 public function isDefaultNamespace ($namespaceURI) {}
520
521 /**
522 * Gets the namespace URI of the node based on the prefix
523 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
524 * @param prefix string <p>
525 * The prefix of the namespace.
526 * </p>
527 * @return string The namespace URI of the node.
528 */
529 public function lookupNamespaceUri ($prefix) {}
530
531 /**
532 * @param arg DOMNode
533 */
534 public function isEqualNode (DOMNode $arg) {}
535
536 /**
537 * @param feature
538 * @param version
539 */
540 public function getFeature ($feature, $version) {}
541
542 /**
543 * @param key
544 * @param data
545 * @param handler
546 */
547 public function setUserData ($key, $data, $handler) {}
548
549 /**
550 * @param key
551 */
552 public function getUserData ($key) {}
553
554 /**
555 * Get an XPath for a node
556 * @link http://www.php.net/manual/en/domnode.getnodepath.php
557 * @return string a string containing the XPath, or &null; in case of an error.
558 */
559 public function getNodePath () {}
560
561 /**
562 * Get line number for a node
563 * @link http://www.php.net/manual/en/domnode.getlineno.php
564 * @return int Always returns the line number where the node was defined in.
565 */
566 public function getLineNo () {}
567
568 /**
569 * Canonicalize nodes to a string
570 * @link http://www.php.net/manual/en/domnode.c14n.php
571 * @param exclusive bool[optional] <p>
572 * Enable exclusive parsing of only the nodes matched by the provided
573 * xpath or namespace prefixes.
574 * </p>
575 * @param with_comments bool[optional] <p>
576 * Retain comments in output.
577 * </p>
578 * @param xpath array[optional] <p>
579 * An array of xpaths to filter the nodes by.
580 * </p>
581 * @param ns_prefixes array[optional] <p>
582 * An array of namespace prefixes to filter the nodes by.
583 * </p>
584 * @return string canonicalized nodes as a string&return.falseforfailure;
585 */
586 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
587
588 /**
589 * Canonicalize nodes to a file
590 * @link http://www.php.net/manual/en/domnode.c14nfile.php
591 * @param uri string <p>
592 * Path to write the output to.
593 * </p>
594 * @param exclusive bool[optional] <p>
595 * Enable exclusive parsing of only the nodes matched by the provided
596 * xpath or namespace prefixes.
597 * </p>
598 * @param with_comments bool[optional] <p>
599 * Retain comments in output.
600 * </p>
601 * @param xpath array[optional] <p>
602 * An array of xpaths to filter the nodes by.
603 * </p>
604 * @param ns_prefixes array[optional] <p>
605 * An array of namespace prefixes to filter the nodes by.
606 * </p>
607 * @return int Number of bytes written&return.falseforfailure;
608 */
609 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
610
611 }
612
613 class DOMDocument extends DOMNode {
614
615 /**
616 * Create new element node
617 * @link http://www.php.net/manual/en/domdocument.createelement.php
618 * @param name string <p>
619 * The tag name of the element.
620 * </p>
621 * @param value string[optional] <p>
622 * The value of the element. By default, an empty element will be created.
623 * The value can also be set later with DOMElement::$nodeValue.
624 * </p>
625 * @return DOMElement a new instance of class DOMElement or false
626 * if an error occurred.
627 */
628 public function createElement ($name, $value = null) {}
629
630 /**
631 * Create new document fragment
632 * @link http://www.php.net/manual/en/domdocument.createdocumentfragment.php
633 * @return DOMDocumentFragment The new DOMDocumentFragment or false if an error occurred.
634 */
635 public function createDocumentFragment () {}
636
637 /**
638 * Create new text node
639 * @link http://www.php.net/manual/en/domdocument.createtextnode.php
640 * @param content string <p>
641 * The content of the text.
642 * </p>
643 * @return DOMText The new DOMText or false if an error occurred.
644 */
645 public function createTextNode ($content) {}
646
647 /**
648 * Create new comment node
649 * @link http://www.php.net/manual/en/domdocument.createcomment.php
650 * @param data string <p>
651 * The content of the comment.
652 * </p>
653 * @return DOMComment The new DOMComment or false if an error occurred.
654 */
655 public function createComment ($data) {}
656
657 /**
658 * Create new cdata node
659 * @link http://www.php.net/manual/en/domdocument.createcdatasection.php
660 * @param data string <p>
661 * The content of the cdata.
662 * </p>
663 * @return DOMCDATASection The new DOMCDATASection or false if an error occurred.
664 */
665 public function createCDATASection ($data) {}
666
667 /**
668 * Creates new PI node
669 * @link http://www.php.net/manual/en/domdocument.createprocessinginstruction.php
670 * @param target string <p>
671 * The target of the processing instruction.
672 * </p>
673 * @param data string[optional] <p>
674 * The content of the processing instruction.
675 * </p>
676 * @return DOMProcessingInstruction The new DOMProcessingInstruction or false if an error occurred.
677 */
678 public function createProcessingInstruction ($target, $data = null) {}
679
680 /**
681 * Create new attribute
682 * @link http://www.php.net/manual/en/domdocument.createattribute.php
683 * @param name string <p>
684 * The name of the attribute.
685 * </p>
686 * @return DOMAttr The new DOMAttr or false if an error occurred.
687 */
688 public function createAttribute ($name) {}
689
690 /**
691 * Create new entity reference node
692 * @link http://www.php.net/manual/en/domdocument.createentityreference.php
693 * @param name string <p>
694 * The content of the entity reference, e.g. the entity reference minus
695 * the leading & and the trailing
696 * ; characters.
697 * </p>
698 * @return DOMEntityReference The new DOMEntityReference or false if an error
699 * occurred.
700 */
701 public function createEntityReference ($name) {}
702
703 /**
704 * Searches for all elements with given local tag name
705 * @link http://www.php.net/manual/en/domdocument.getelementsbytagname.php
706 * @param name string <p>
707 * The local name (without namespace) of the tag to match on. The special value *
708 * matches all tags.
709 * </p>
710 * @return DOMNodeList A new DOMNodeList object containing all the matched
711 * elements.
712 */
713 public function getElementsByTagName ($name) {}
714
715 /**
716 * Import node into current document
717 * @link http://www.php.net/manual/en/domdocument.importnode.php
718 * @param importedNode DOMNode <p>
719 * The node to import.
720 * </p>
721 * @param deep bool[optional] <p>
722 * If set to true, this method will recursively import the subtree under
723 * the importedNode.
724 * </p>
725 *
726 * <p>
727 * To copy the nodes attributes deep needs to be set to true
728 * </p>
729 * @return DOMNode The copied node or false, if it cannot be copied.
730 */
731 public function importNode (DOMNode $importedNode, $deep = null) {}
732
733 /**
734 * Create new element node with an associated namespace
735 * @link http://www.php.net/manual/en/domdocument.createelementns.php
736 * @param namespaceURI string <p>
737 * The URI of the namespace.
738 * </p>
739 * @param qualifiedName string <p>
740 * The qualified name of the element, as prefix:tagname.
741 * </p>
742 * @param value string[optional] <p>
743 * The value of the element. By default, an empty element will be created.
744 * You can also set the value later with DOMElement::$nodeValue.
745 * </p>
746 * @return DOMElement The new DOMElement or false if an error occurred.
747 */
748 public function createElementNS ($namespaceURI, $qualifiedName, $value = null) {}
749
750 /**
751 * Create new attribute node with an associated namespace
752 * @link http://www.php.net/manual/en/domdocument.createattributens.php
753 * @param namespaceURI string <p>
754 * The URI of the namespace.
755 * </p>
756 * @param qualifiedName string <p>
757 * The tag name and prefix of the attribute, as prefix:tagname.
758 * </p>
759 * @return DOMAttr The new DOMAttr or false if an error occurred.
760 */
761 public function createAttributeNS ($namespaceURI, $qualifiedName) {}
762
763 /**
764 * Searches for all elements with given tag name in specified namespace
765 * @link http://www.php.net/manual/en/domdocument.getelementsbytagnamens.php
766 * @param namespaceURI string <p>
767 * The namespace URI of the elements to match on.
768 * The special value * matches all namespaces.
769 * </p>
770 * @param localName string <p>
771 * The local name of the elements to match on.
772 * The special value * matches all local names.
773 * </p>
774 * @return DOMNodeList A new DOMNodeList object containing all the matched
775 * elements.
776 */
777 public function getElementsByTagNameNS ($namespaceURI, $localName) {}
778
779 /**
780 * Searches for an element with a certain id
781 * @link http://www.php.net/manual/en/domdocument.getelementbyid.php
782 * @param elementId string <p>
783 * The unique id value for an element.
784 * </p>
785 * @return DOMElement the DOMElement or &null; if the element is
786 * not found.
787 */
788 public function getElementById ($elementId) {}
789
790 /**
791 * @param source DOMNode
792 */
793 public function adoptNode (DOMNode $source) {}
794
795 /**
796 * Normalizes the document
797 * @link http://www.php.net/manual/en/domdocument.normalizedocument.php
798 * @return void
799 */
800 public function normalizeDocument () {}
801
802 /**
803 * @param node DOMNode
804 * @param namespaceURI
805 * @param qualifiedName
806 */
807 public function renameNode (DOMNode $node, $namespaceURI, $qualifiedName) {}
808
809 /**
810 * Load XML from a file
811 * @link http://www.php.net/manual/en/domdocument.load.php
812 * @param filename string <p>
813 * The path to the XML document.
814 * </p>
815 * @param options int[optional] <p>
816 * Bitwise OR
817 * of the libxml option constants.
818 * </p>
819 * @return mixed Returns true on success, false on failure. If called statically, returns a
820 * DOMDocument&return.falseforfailure;.
821 */
822 public function load ($filename, $options = null) {}
823
824 /**
825 * Dumps the internal XML tree back into a file
826 * @link http://www.php.net/manual/en/domdocument.save.php
827 * @param filename string <p>
828 * The path to the saved XML document.
829 * </p>
830 * @param options int[optional] <p>
831 * Additional Options. Currently only LIBXML_NOEMPTYTAG is supported.
832 * </p>
833 * @return int the number of bytes written or false if an error occurred.
834 */
835 public function save ($filename, $options = null) {}
836
837 /**
838 * Load XML from a string
839 * @link http://www.php.net/manual/en/domdocument.loadxml.php
840 * @param source string <p>
841 * The string containing the XML.
842 * </p>
843 * @param options int[optional] <p>
844 * Bitwise OR
845 * of the libxml option constants.
846 * </p>
847 * @return mixed Returns true on success, false on failure. If called statically, returns a
848 * DOMDocument&return.falseforfailure;.
849 */
850 public function loadXML ($source, $options = null) {}
851
852 /**
853 * Dumps the internal XML tree back into a string
854 * @link http://www.php.net/manual/en/domdocument.savexml.php
855 * @param node DOMNode[optional] <p>
856 * Use this parameter to output only a specific node without XML declaration
857 * rather than the entire document.
858 * </p>
859 * @param options int[optional] <p>
860 * Additional Options. Currently only LIBXML_NOEMPTYTAG is supported.
861 * </p>
862 * @return string the XML, or false if an error occurred.
863 */
864 public function saveXML (DOMNode $node = null, $options = null) {}
865
866 /**
867 * Creates a new DOMDocument object
868 * @link http://www.php.net/manual/en/domdocument.construct.php
869 * @param version[optional]
870 * @param encoding[optional]
871 */
872 public function __construct ($version, $encoding) {}
873
874 /**
875 * Validates the document based on its DTD
876 * @link http://www.php.net/manual/en/domdocument.validate.php
877 * @return bool Returns true on success, false on failure.
878 * If the document have no DTD attached, this method will return false.
879 */
880 public function validate () {}
881
882 /**
883 * Substitutes XIncludes in a DOMDocument Object
884 * @link http://www.php.net/manual/en/domdocument.xinclude.php
885 * @param options int[optional] <p>
886 * libxml parameters. Available
887 * since PHP 5.1.0 and Libxml 2.6.7.
888 * </p>
889 * @return int the number of XIncludes in the document, -1 if some processing failed,
890 * or false if there were no substitutions.
891 */
892 public function xinclude ($options = null) {}
893
894 /**
895 * Load HTML from a string
896 * @link http://www.php.net/manual/en/domdocument.loadhtml.php
897 * @param source string <p>
898 * The HTML string.
899 * </p>
900 * @param options int[optional] <p>
901 * Since PHP 5.4.0 and Libxml 2.6.0, you may also use the
902 * options parameter to specify additional Libxml parameters.
903 * </p>
904 * @return bool Returns true on success, false on failure. If called statically, returns a
905 * DOMDocument&return.falseforfailure;.
906 */
907 public function loadHTML ($source, $options = null) {}
908
909 /**
910 * Load HTML from a file
911 * @link http://www.php.net/manual/en/domdocument.loadhtmlfile.php
912 * @param filename string <p>
913 * The path to the HTML file.
914 * </p>
915 * @param options int[optional] <p>
916 * Since PHP 5.4.0 and Libxml 2.6.0, you may also use the
917 * options parameter to specify additional Libxml parameters.
918 * </p>
919 * @return bool Returns true on success, false on failure. If called statically, returns a
920 * DOMDocument&return.falseforfailure;.
921 */
922 public function loadHTMLFile ($filename, $options = null) {}
923
924 /**
925 * Dumps the internal document into a string using HTML formatting
926 * @link http://www.php.net/manual/en/domdocument.savehtml.php
927 * @param node DOMNode[optional] <p>
928 * Optional parameter to output a subset of the document.
929 * </p>
930 * @return string the HTML, or false if an error occurred.
931 */
932 public function saveHTML (DOMNode $node = null) {}
933
934 /**
935 * Dumps the internal document into a file using HTML formatting
936 * @link http://www.php.net/manual/en/domdocument.savehtmlfile.php
937 * @param filename string <p>
938 * The path to the saved HTML document.
939 * </p>
940 * @return int the number of bytes written or false if an error occurred.
941 */
942 public function saveHTMLFile ($filename) {}
943
944 /**
945 * Validates a document based on a schema
946 * @link http://www.php.net/manual/en/domdocument.schemavalidate.php
947 * @param filename string <p>
948 * The path to the schema.
949 * </p>
950 * @param flags int[optional] <p>
951 * A bitmask of Libxml schema validation flags. Currently the only supported value is LIBXML_SCHEMA_CREATE. Available since PHP 5.5.2 and Libxml 2.6.14.
952 * </p>
953 * @return bool Returns true on success, false on failure.
954 */
955 public function schemaValidate ($filename, $flags = null) {}
956
957 /**
958 * Validates a document based on a schema
959 * @link http://www.php.net/manual/en/domdocument.schemavalidatesource.php
960 * @param source string <p>
961 * A string containing the schema.
962 * </p>
963 * @param flags int[optional] <p>
964 * A bitmask of Libxml schema validation flags. Currently the only supported value is LIBXML_SCHEMA_CREATE. Available since PHP 5.5.2 and Libxml 2.6.14.
965 * </p>
966 * @return bool Returns true on success, false on failure.
967 */
968 public function schemaValidateSource ($source, $flags = null) {}
969
970 /**
971 * Performs relaxNG validation on the document
972 * @link http://www.php.net/manual/en/domdocument.relaxngvalidate.php
973 * @param filename string <p>
974 * The RNG file.
975 * </p>
976 * @return bool Returns true on success, false on failure.
977 */
978 public function relaxNGValidate ($filename) {}
979
980 /**
981 * Performs relaxNG validation on the document
982 * @link http://www.php.net/manual/en/domdocument.relaxngvalidatesource.php
983 * @param source string <p>
984 * A string containing the RNG schema.
985 * </p>
986 * @return bool Returns true on success, false on failure.
987 */
988 public function relaxNGValidateSource ($source) {}
989
990 /**
991 * Register extended class used to create base node type
992 * @link http://www.php.net/manual/en/domdocument.registernodeclass.php
993 * @param baseclass string <p>
994 * The DOM class that you want to extend. You can find a list of these
995 * classes in the chapter introduction.
996 * </p>
997 * @param extendedclass string <p>
998 * Your extended class name. If &null; is provided, any previously
999 * registered class extending baseclass will
1000 * be removed.
1001 * </p>
1002 * @return bool Returns true on success, false on failure.
1003 */
1004 public function registerNodeClass ($baseclass, $extendedclass) {}
1005
1006 /**
1007 * Adds a new child before a reference node
1008 * @link http://www.php.net/manual/en/domnode.insertbefore.php
1009 * @param newnode DOMNode <p>
1010 * The new node.
1011 * </p>
1012 * @param refnode DOMNode[optional] <p>
1013 * The reference node. If not supplied, newnode is
1014 * appended to the children.
1015 * </p>
1016 * @return DOMNode The inserted node.
1017 */
1018 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
1019
1020 /**
1021 * Replaces a child
1022 * @link http://www.php.net/manual/en/domnode.replacechild.php
1023 * @param newnode DOMNode <p>
1024 * The new node. It must be a member of the target document, i.e.
1025 * created by one of the DOMDocument->createXXX() methods or imported in
1026 * the document by .
1027 * </p>
1028 * @param oldnode DOMNode <p>
1029 * The old node.
1030 * </p>
1031 * @return DOMNode The old node or false if an error occur.
1032 */
1033 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
1034
1035 /**
1036 * Removes child from list of children
1037 * @link http://www.php.net/manual/en/domnode.removechild.php
1038 * @param oldnode DOMNode <p>
1039 * The removed child.
1040 * </p>
1041 * @return DOMNode If the child could be removed the function returns the old child.
1042 */
1043 public function removeChild (DOMNode $oldnode) {}
1044
1045 /**
1046 * Adds new child at the end of the children
1047 * @link http://www.php.net/manual/en/domnode.appendchild.php
1048 * @param newnode DOMNode <p>
1049 * The appended child.
1050 * </p>
1051 * @return DOMNode The node added.
1052 */
1053 public function appendChild (DOMNode $newnode) {}
1054
1055 /**
1056 * Checks if node has children
1057 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
1058 * @return bool Returns true on success, false on failure.
1059 */
1060 public function hasChildNodes () {}
1061
1062 /**
1063 * Clones a node
1064 * @link http://www.php.net/manual/en/domnode.clonenode.php
1065 * @param deep bool[optional] <p>
1066 * Indicates whether to copy all descendant nodes. This parameter is
1067 * defaulted to false.
1068 * </p>
1069 * @return DOMNode The cloned node.
1070 */
1071 public function cloneNode ($deep = null) {}
1072
1073 /**
1074 * Normalizes the node
1075 * @link http://www.php.net/manual/en/domnode.normalize.php
1076 * @return void
1077 */
1078 public function normalize () {}
1079
1080 /**
1081 * Checks if feature is supported for specified version
1082 * @link http://www.php.net/manual/en/domnode.issupported.php
1083 * @param feature string <p>
1084 * The feature to test. See the example of
1085 * DOMImplementation::hasFeature for a
1086 * list of features.
1087 * </p>
1088 * @param version string <p>
1089 * The version number of the feature to test.
1090 * </p>
1091 * @return bool Returns true on success, false on failure.
1092 */
1093 public function isSupported ($feature, $version) {}
1094
1095 /**
1096 * Checks if node has attributes
1097 * @link http://www.php.net/manual/en/domnode.hasattributes.php
1098 * @return bool Returns true on success, false on failure.
1099 */
1100 public function hasAttributes () {}
1101
1102 /**
1103 * @param other DOMNode
1104 */
1105 public function compareDocumentPosition (DOMNode $other) {}
1106
1107 /**
1108 * Indicates if two nodes are the same node
1109 * @link http://www.php.net/manual/en/domnode.issamenode.php
1110 * @param node DOMNode <p>
1111 * The compared node.
1112 * </p>
1113 * @return bool Returns true on success, false on failure.
1114 */
1115 public function isSameNode (DOMNode $node) {}
1116
1117 /**
1118 * Gets the namespace prefix of the node based on the namespace URI
1119 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
1120 * @param namespaceURI string <p>
1121 * The namespace URI.
1122 * </p>
1123 * @return string The prefix of the namespace.
1124 */
1125 public function lookupPrefix ($namespaceURI) {}
1126
1127 /**
1128 * Checks if the specified namespaceURI is the default namespace or not
1129 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
1130 * @param namespaceURI string <p>
1131 * The namespace URI to look for.
1132 * </p>
1133 * @return bool Return true if namespaceURI is the default
1134 * namespace, false otherwise.
1135 */
1136 public function isDefaultNamespace ($namespaceURI) {}
1137
1138 /**
1139 * Gets the namespace URI of the node based on the prefix
1140 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
1141 * @param prefix string <p>
1142 * The prefix of the namespace.
1143 * </p>
1144 * @return string The namespace URI of the node.
1145 */
1146 public function lookupNamespaceUri ($prefix) {}
1147
1148 /**
1149 * @param arg DOMNode
1150 */
1151 public function isEqualNode (DOMNode $arg) {}
1152
1153 /**
1154 * @param feature
1155 * @param version
1156 */
1157 public function getFeature ($feature, $version) {}
1158
1159 /**
1160 * @param key
1161 * @param data
1162 * @param handler
1163 */
1164 public function setUserData ($key, $data, $handler) {}
1165
1166 /**
1167 * @param key
1168 */
1169 public function getUserData ($key) {}
1170
1171 /**
1172 * Get an XPath for a node
1173 * @link http://www.php.net/manual/en/domnode.getnodepath.php
1174 * @return string a string containing the XPath, or &null; in case of an error.
1175 */
1176 public function getNodePath () {}
1177
1178 /**
1179 * Get line number for a node
1180 * @link http://www.php.net/manual/en/domnode.getlineno.php
1181 * @return int Always returns the line number where the node was defined in.
1182 */
1183 public function getLineNo () {}
1184
1185 /**
1186 * Canonicalize nodes to a string
1187 * @link http://www.php.net/manual/en/domnode.c14n.php
1188 * @param exclusive bool[optional] <p>
1189 * Enable exclusive parsing of only the nodes matched by the provided
1190 * xpath or namespace prefixes.
1191 * </p>
1192 * @param with_comments bool[optional] <p>
1193 * Retain comments in output.
1194 * </p>
1195 * @param xpath array[optional] <p>
1196 * An array of xpaths to filter the nodes by.
1197 * </p>
1198 * @param ns_prefixes array[optional] <p>
1199 * An array of namespace prefixes to filter the nodes by.
1200 * </p>
1201 * @return string canonicalized nodes as a string&return.falseforfailure;
1202 */
1203 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
1204
1205 /**
1206 * Canonicalize nodes to a file
1207 * @link http://www.php.net/manual/en/domnode.c14nfile.php
1208 * @param uri string <p>
1209 * Path to write the output to.
1210 * </p>
1211 * @param exclusive bool[optional] <p>
1212 * Enable exclusive parsing of only the nodes matched by the provided
1213 * xpath or namespace prefixes.
1214 * </p>
1215 * @param with_comments bool[optional] <p>
1216 * Retain comments in output.
1217 * </p>
1218 * @param xpath array[optional] <p>
1219 * An array of xpaths to filter the nodes by.
1220 * </p>
1221 * @param ns_prefixes array[optional] <p>
1222 * An array of namespace prefixes to filter the nodes by.
1223 * </p>
1224 * @return int Number of bytes written&return.falseforfailure;
1225 */
1226 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
1227
1228 }
1229
1230 class DOMNodeList implements Traversable {
1231
1232 /**
1233 * Retrieves a node specified by index
1234 * @link http://www.php.net/manual/en/domnodelist.item.php
1235 * @param index int <p>
1236 * Index of the node into the collection.
1237 * </p>
1238 * @return DOMNode The node at the indexth position in the
1239 * DOMNodeList, or &null; if that is not a valid
1240 * index.
1241 */
1242 public function item ($index) {}
1243
1244 }
1245
1246 class DOMNamedNodeMap implements Traversable {
1247
1248 /**
1249 * Retrieves a node specified by name
1250 * @link http://www.php.net/manual/en/domnamednodemap.getnameditem.php
1251 * @param name string <p>
1252 * The nodeName of the node to retrieve.
1253 * </p>
1254 * @return DOMNode A node (of any type) with the specified nodeName, or
1255 * &null; if no node is found.
1256 */
1257 public function getNamedItem ($name) {}
1258
1259 /**
1260 * @param arg DOMNode
1261 */
1262 public function setNamedItem (DOMNode $arg) {}
1263
1264 /**
1265 * @param name[optional]
1266 */
1267 public function removeNamedItem ($name) {}
1268
1269 /**
1270 * Retrieves a node specified by index
1271 * @link http://www.php.net/manual/en/domnamednodemap.item.php
1272 * @param index int <p>
1273 * Index into this map.
1274 * </p>
1275 * @return DOMNode The node at the indexth position in the map, or &null;
1276 * if that is not a valid index (greater than or equal to the number of nodes
1277 * in this map).
1278 */
1279 public function item ($index) {}
1280
1281 /**
1282 * Retrieves a node specified by local name and namespace URI
1283 * @link http://www.php.net/manual/en/domnamednodemap.getnameditemns.php
1284 * @param namespaceURI string <p>
1285 * The namespace URI of the node to retrieve.
1286 * </p>
1287 * @param localName string <p>
1288 * The local name of the node to retrieve.
1289 * </p>
1290 * @return DOMNode A node (of any type) with the specified local name and namespace URI, or
1291 * &null; if no node is found.
1292 */
1293 public function getNamedItemNS ($namespaceURI, $localName) {}
1294
1295 /**
1296 * @param arg DOMNode[optional]
1297 */
1298 public function setNamedItemNS (DOMNode $arg) {}
1299
1300 /**
1301 * @param namespaceURI[optional]
1302 * @param localName[optional]
1303 */
1304 public function removeNamedItemNS ($namespaceURI, $localName) {}
1305
1306 }
1307
1308 class DOMCharacterData extends DOMNode {
1309
1310 /**
1311 * Extracts a range of data from the node
1312 * @link http://www.php.net/manual/en/domcharacterdata.substringdata.php
1313 * @param offset int <p>
1314 * Start offset of substring to extract.
1315 * </p>
1316 * @param count int <p>
1317 * The number of characters to extract.
1318 * </p>
1319 * @return string The specified substring. If the sum of offset
1320 * and count exceeds the length, then all 16-bit units
1321 * to the end of the data are returned.
1322 */
1323 public function substringData ($offset, $count) {}
1324
1325 /**
1326 * Append the string to the end of the character data of the node
1327 * @link http://www.php.net/manual/en/domcharacterdata.appenddata.php
1328 * @param data string <p>
1329 * The string to append.
1330 * </p>
1331 * @return void
1332 */
1333 public function appendData ($data) {}
1334
1335 /**
1336 * Insert a string at the specified 16-bit unit offset
1337 * @link http://www.php.net/manual/en/domcharacterdata.insertdata.php
1338 * @param offset int <p>
1339 * The character offset at which to insert.
1340 * </p>
1341 * @param data string <p>
1342 * The string to insert.
1343 * </p>
1344 * @return void
1345 */
1346 public function insertData ($offset, $data) {}
1347
1348 /**
1349 * Remove a range of characters from the node
1350 * @link http://www.php.net/manual/en/domcharacterdata.deletedata.php
1351 * @param offset int <p>
1352 * The offset from which to start removing.
1353 * </p>
1354 * @param count int <p>
1355 * The number of characters to delete. If the sum of
1356 * offset and count exceeds
1357 * the length, then all characters to the end of the data are deleted.
1358 * </p>
1359 * @return void
1360 */
1361 public function deleteData ($offset, $count) {}
1362
1363 /**
1364 * Replace a substring within the DOMCharacterData node
1365 * @link http://www.php.net/manual/en/domcharacterdata.replacedata.php
1366 * @param offset int <p>
1367 * The offset from which to start replacing.
1368 * </p>
1369 * @param count int <p>
1370 * The number of characters to replace. If the sum of
1371 * offset and count exceeds
1372 * the length, then all characters to the end of the data are replaced.
1373 * </p>
1374 * @param data string <p>
1375 * The string with which the range must be replaced.
1376 * </p>
1377 * @return void
1378 */
1379 public function replaceData ($offset, $count, $data) {}
1380
1381 /**
1382 * Adds a new child before a reference node
1383 * @link http://www.php.net/manual/en/domnode.insertbefore.php
1384 * @param newnode DOMNode <p>
1385 * The new node.
1386 * </p>
1387 * @param refnode DOMNode[optional] <p>
1388 * The reference node. If not supplied, newnode is
1389 * appended to the children.
1390 * </p>
1391 * @return DOMNode The inserted node.
1392 */
1393 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
1394
1395 /**
1396 * Replaces a child
1397 * @link http://www.php.net/manual/en/domnode.replacechild.php
1398 * @param newnode DOMNode <p>
1399 * The new node. It must be a member of the target document, i.e.
1400 * created by one of the DOMDocument->createXXX() methods or imported in
1401 * the document by .
1402 * </p>
1403 * @param oldnode DOMNode <p>
1404 * The old node.
1405 * </p>
1406 * @return DOMNode The old node or false if an error occur.
1407 */
1408 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
1409
1410 /**
1411 * Removes child from list of children
1412 * @link http://www.php.net/manual/en/domnode.removechild.php
1413 * @param oldnode DOMNode <p>
1414 * The removed child.
1415 * </p>
1416 * @return DOMNode If the child could be removed the function returns the old child.
1417 */
1418 public function removeChild (DOMNode $oldnode) {}
1419
1420 /**
1421 * Adds new child at the end of the children
1422 * @link http://www.php.net/manual/en/domnode.appendchild.php
1423 * @param newnode DOMNode <p>
1424 * The appended child.
1425 * </p>
1426 * @return DOMNode The node added.
1427 */
1428 public function appendChild (DOMNode $newnode) {}
1429
1430 /**
1431 * Checks if node has children
1432 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
1433 * @return bool Returns true on success, false on failure.
1434 */
1435 public function hasChildNodes () {}
1436
1437 /**
1438 * Clones a node
1439 * @link http://www.php.net/manual/en/domnode.clonenode.php
1440 * @param deep bool[optional] <p>
1441 * Indicates whether to copy all descendant nodes. This parameter is
1442 * defaulted to false.
1443 * </p>
1444 * @return DOMNode The cloned node.
1445 */
1446 public function cloneNode ($deep = null) {}
1447
1448 /**
1449 * Normalizes the node
1450 * @link http://www.php.net/manual/en/domnode.normalize.php
1451 * @return void
1452 */
1453 public function normalize () {}
1454
1455 /**
1456 * Checks if feature is supported for specified version
1457 * @link http://www.php.net/manual/en/domnode.issupported.php
1458 * @param feature string <p>
1459 * The feature to test. See the example of
1460 * DOMImplementation::hasFeature for a
1461 * list of features.
1462 * </p>
1463 * @param version string <p>
1464 * The version number of the feature to test.
1465 * </p>
1466 * @return bool Returns true on success, false on failure.
1467 */
1468 public function isSupported ($feature, $version) {}
1469
1470 /**
1471 * Checks if node has attributes
1472 * @link http://www.php.net/manual/en/domnode.hasattributes.php
1473 * @return bool Returns true on success, false on failure.
1474 */
1475 public function hasAttributes () {}
1476
1477 /**
1478 * @param other DOMNode
1479 */
1480 public function compareDocumentPosition (DOMNode $other) {}
1481
1482 /**
1483 * Indicates if two nodes are the same node
1484 * @link http://www.php.net/manual/en/domnode.issamenode.php
1485 * @param node DOMNode <p>
1486 * The compared node.
1487 * </p>
1488 * @return bool Returns true on success, false on failure.
1489 */
1490 public function isSameNode (DOMNode $node) {}
1491
1492 /**
1493 * Gets the namespace prefix of the node based on the namespace URI
1494 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
1495 * @param namespaceURI string <p>
1496 * The namespace URI.
1497 * </p>
1498 * @return string The prefix of the namespace.
1499 */
1500 public function lookupPrefix ($namespaceURI) {}
1501
1502 /**
1503 * Checks if the specified namespaceURI is the default namespace or not
1504 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
1505 * @param namespaceURI string <p>
1506 * The namespace URI to look for.
1507 * </p>
1508 * @return bool Return true if namespaceURI is the default
1509 * namespace, false otherwise.
1510 */
1511 public function isDefaultNamespace ($namespaceURI) {}
1512
1513 /**
1514 * Gets the namespace URI of the node based on the prefix
1515 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
1516 * @param prefix string <p>
1517 * The prefix of the namespace.
1518 * </p>
1519 * @return string The namespace URI of the node.
1520 */
1521 public function lookupNamespaceUri ($prefix) {}
1522
1523 /**
1524 * @param arg DOMNode
1525 */
1526 public function isEqualNode (DOMNode $arg) {}
1527
1528 /**
1529 * @param feature
1530 * @param version
1531 */
1532 public function getFeature ($feature, $version) {}
1533
1534 /**
1535 * @param key
1536 * @param data
1537 * @param handler
1538 */
1539 public function setUserData ($key, $data, $handler) {}
1540
1541 /**
1542 * @param key
1543 */
1544 public function getUserData ($key) {}
1545
1546 /**
1547 * Get an XPath for a node
1548 * @link http://www.php.net/manual/en/domnode.getnodepath.php
1549 * @return string a string containing the XPath, or &null; in case of an error.
1550 */
1551 public function getNodePath () {}
1552
1553 /**
1554 * Get line number for a node
1555 * @link http://www.php.net/manual/en/domnode.getlineno.php
1556 * @return int Always returns the line number where the node was defined in.
1557 */
1558 public function getLineNo () {}
1559
1560 /**
1561 * Canonicalize nodes to a string
1562 * @link http://www.php.net/manual/en/domnode.c14n.php
1563 * @param exclusive bool[optional] <p>
1564 * Enable exclusive parsing of only the nodes matched by the provided
1565 * xpath or namespace prefixes.
1566 * </p>
1567 * @param with_comments bool[optional] <p>
1568 * Retain comments in output.
1569 * </p>
1570 * @param xpath array[optional] <p>
1571 * An array of xpaths to filter the nodes by.
1572 * </p>
1573 * @param ns_prefixes array[optional] <p>
1574 * An array of namespace prefixes to filter the nodes by.
1575 * </p>
1576 * @return string canonicalized nodes as a string&return.falseforfailure;
1577 */
1578 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
1579
1580 /**
1581 * Canonicalize nodes to a file
1582 * @link http://www.php.net/manual/en/domnode.c14nfile.php
1583 * @param uri string <p>
1584 * Path to write the output to.
1585 * </p>
1586 * @param exclusive bool[optional] <p>
1587 * Enable exclusive parsing of only the nodes matched by the provided
1588 * xpath or namespace prefixes.
1589 * </p>
1590 * @param with_comments bool[optional] <p>
1591 * Retain comments in output.
1592 * </p>
1593 * @param xpath array[optional] <p>
1594 * An array of xpaths to filter the nodes by.
1595 * </p>
1596 * @param ns_prefixes array[optional] <p>
1597 * An array of namespace prefixes to filter the nodes by.
1598 * </p>
1599 * @return int Number of bytes written&return.falseforfailure;
1600 */
1601 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
1602
1603 }
1604
1605 class DOMAttr extends DOMNode {
1606
1607 /**
1608 * Checks if attribute is a defined ID
1609 * @link http://www.php.net/manual/en/domattr.isid.php
1610 * @return bool Returns true on success, false on failure.
1611 */
1612 public function isId () {}
1613
1614 /**
1615 * Creates a new <classname>DOMAttr</classname> object
1616 * @link http://www.php.net/manual/en/domattr.construct.php
1617 * @param name
1618 * @param value[optional]
1619 */
1620 public function __construct ($name, $value) {}
1621
1622 /**
1623 * Adds a new child before a reference node
1624 * @link http://www.php.net/manual/en/domnode.insertbefore.php
1625 * @param newnode DOMNode <p>
1626 * The new node.
1627 * </p>
1628 * @param refnode DOMNode[optional] <p>
1629 * The reference node. If not supplied, newnode is
1630 * appended to the children.
1631 * </p>
1632 * @return DOMNode The inserted node.
1633 */
1634 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
1635
1636 /**
1637 * Replaces a child
1638 * @link http://www.php.net/manual/en/domnode.replacechild.php
1639 * @param newnode DOMNode <p>
1640 * The new node. It must be a member of the target document, i.e.
1641 * created by one of the DOMDocument->createXXX() methods or imported in
1642 * the document by .
1643 * </p>
1644 * @param oldnode DOMNode <p>
1645 * The old node.
1646 * </p>
1647 * @return DOMNode The old node or false if an error occur.
1648 */
1649 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
1650
1651 /**
1652 * Removes child from list of children
1653 * @link http://www.php.net/manual/en/domnode.removechild.php
1654 * @param oldnode DOMNode <p>
1655 * The removed child.
1656 * </p>
1657 * @return DOMNode If the child could be removed the function returns the old child.
1658 */
1659 public function removeChild (DOMNode $oldnode) {}
1660
1661 /**
1662 * Adds new child at the end of the children
1663 * @link http://www.php.net/manual/en/domnode.appendchild.php
1664 * @param newnode DOMNode <p>
1665 * The appended child.
1666 * </p>
1667 * @return DOMNode The node added.
1668 */
1669 public function appendChild (DOMNode $newnode) {}
1670
1671 /**
1672 * Checks if node has children
1673 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
1674 * @return bool Returns true on success, false on failure.
1675 */
1676 public function hasChildNodes () {}
1677
1678 /**
1679 * Clones a node
1680 * @link http://www.php.net/manual/en/domnode.clonenode.php
1681 * @param deep bool[optional] <p>
1682 * Indicates whether to copy all descendant nodes. This parameter is
1683 * defaulted to false.
1684 * </p>
1685 * @return DOMNode The cloned node.
1686 */
1687 public function cloneNode ($deep = null) {}
1688
1689 /**
1690 * Normalizes the node
1691 * @link http://www.php.net/manual/en/domnode.normalize.php
1692 * @return void
1693 */
1694 public function normalize () {}
1695
1696 /**
1697 * Checks if feature is supported for specified version
1698 * @link http://www.php.net/manual/en/domnode.issupported.php
1699 * @param feature string <p>
1700 * The feature to test. See the example of
1701 * DOMImplementation::hasFeature for a
1702 * list of features.
1703 * </p>
1704 * @param version string <p>
1705 * The version number of the feature to test.
1706 * </p>
1707 * @return bool Returns true on success, false on failure.
1708 */
1709 public function isSupported ($feature, $version) {}
1710
1711 /**
1712 * Checks if node has attributes
1713 * @link http://www.php.net/manual/en/domnode.hasattributes.php
1714 * @return bool Returns true on success, false on failure.
1715 */
1716 public function hasAttributes () {}
1717
1718 /**
1719 * @param other DOMNode
1720 */
1721 public function compareDocumentPosition (DOMNode $other) {}
1722
1723 /**
1724 * Indicates if two nodes are the same node
1725 * @link http://www.php.net/manual/en/domnode.issamenode.php
1726 * @param node DOMNode <p>
1727 * The compared node.
1728 * </p>
1729 * @return bool Returns true on success, false on failure.
1730 */
1731 public function isSameNode (DOMNode $node) {}
1732
1733 /**
1734 * Gets the namespace prefix of the node based on the namespace URI
1735 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
1736 * @param namespaceURI string <p>
1737 * The namespace URI.
1738 * </p>
1739 * @return string The prefix of the namespace.
1740 */
1741 public function lookupPrefix ($namespaceURI) {}
1742
1743 /**
1744 * Checks if the specified namespaceURI is the default namespace or not
1745 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
1746 * @param namespaceURI string <p>
1747 * The namespace URI to look for.
1748 * </p>
1749 * @return bool Return true if namespaceURI is the default
1750 * namespace, false otherwise.
1751 */
1752 public function isDefaultNamespace ($namespaceURI) {}
1753
1754 /**
1755 * Gets the namespace URI of the node based on the prefix
1756 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
1757 * @param prefix string <p>
1758 * The prefix of the namespace.
1759 * </p>
1760 * @return string The namespace URI of the node.
1761 */
1762 public function lookupNamespaceUri ($prefix) {}
1763
1764 /**
1765 * @param arg DOMNode
1766 */
1767 public function isEqualNode (DOMNode $arg) {}
1768
1769 /**
1770 * @param feature
1771 * @param version
1772 */
1773 public function getFeature ($feature, $version) {}
1774
1775 /**
1776 * @param key
1777 * @param data
1778 * @param handler
1779 */
1780 public function setUserData ($key, $data, $handler) {}
1781
1782 /**
1783 * @param key
1784 */
1785 public function getUserData ($key) {}
1786
1787 /**
1788 * Get an XPath for a node
1789 * @link http://www.php.net/manual/en/domnode.getnodepath.php
1790 * @return string a string containing the XPath, or &null; in case of an error.
1791 */
1792 public function getNodePath () {}
1793
1794 /**
1795 * Get line number for a node
1796 * @link http://www.php.net/manual/en/domnode.getlineno.php
1797 * @return int Always returns the line number where the node was defined in.
1798 */
1799 public function getLineNo () {}
1800
1801 /**
1802 * Canonicalize nodes to a string
1803 * @link http://www.php.net/manual/en/domnode.c14n.php
1804 * @param exclusive bool[optional] <p>
1805 * Enable exclusive parsing of only the nodes matched by the provided
1806 * xpath or namespace prefixes.
1807 * </p>
1808 * @param with_comments bool[optional] <p>
1809 * Retain comments in output.
1810 * </p>
1811 * @param xpath array[optional] <p>
1812 * An array of xpaths to filter the nodes by.
1813 * </p>
1814 * @param ns_prefixes array[optional] <p>
1815 * An array of namespace prefixes to filter the nodes by.
1816 * </p>
1817 * @return string canonicalized nodes as a string&return.falseforfailure;
1818 */
1819 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
1820
1821 /**
1822 * Canonicalize nodes to a file
1823 * @link http://www.php.net/manual/en/domnode.c14nfile.php
1824 * @param uri string <p>
1825 * Path to write the output to.
1826 * </p>
1827 * @param exclusive bool[optional] <p>
1828 * Enable exclusive parsing of only the nodes matched by the provided
1829 * xpath or namespace prefixes.
1830 * </p>
1831 * @param with_comments bool[optional] <p>
1832 * Retain comments in output.
1833 * </p>
1834 * @param xpath array[optional] <p>
1835 * An array of xpaths to filter the nodes by.
1836 * </p>
1837 * @param ns_prefixes array[optional] <p>
1838 * An array of namespace prefixes to filter the nodes by.
1839 * </p>
1840 * @return int Number of bytes written&return.falseforfailure;
1841 */
1842 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
1843
1844 }
1845
1846 class DOMElement extends DOMNode {
1847
1848 /**
1849 * Returns value of attribute
1850 * @link http://www.php.net/manual/en/domelement.getattribute.php
1851 * @param name string <p>
1852 * The name of the attribute.
1853 * </p>
1854 * @return string The value of the attribute, or an empty string if no attribute with the
1855 * given name is found.
1856 */
1857 public function getAttribute ($name) {}
1858
1859 /**
1860 * Adds new attribute
1861 * @link http://www.php.net/manual/en/domelement.setattribute.php
1862 * @param name string <p>
1863 * The name of the attribute.
1864 * </p>
1865 * @param value string <p>
1866 * The value of the attribute.
1867 * </p>
1868 * @return DOMAttr The new DOMAttr or false if an error occurred.
1869 */
1870 public function setAttribute ($name, $value) {}
1871
1872 /**
1873 * Removes attribute
1874 * @link http://www.php.net/manual/en/domelement.removeattribute.php
1875 * @param name string <p>
1876 * The name of the attribute.
1877 * </p>
1878 * @return bool Returns true on success, false on failure.
1879 */
1880 public function removeAttribute ($name) {}
1881
1882 /**
1883 * Returns attribute node
1884 * @link http://www.php.net/manual/en/domelement.getattributenode.php
1885 * @param name string <p>
1886 * The name of the attribute.
1887 * </p>
1888 * @return DOMAttr The attribute node.
1889 */
1890 public function getAttributeNode ($name) {}
1891
1892 /**
1893 * Adds new attribute node to element
1894 * @link http://www.php.net/manual/en/domelement.setattributenode.php
1895 * @param attr DOMAttr <p>
1896 * The attribute node.
1897 * </p>
1898 * @return DOMAttr old node if the attribute has been replaced or &null;.
1899 */
1900 public function setAttributeNode (DOMAttr $attr) {}
1901
1902 /**
1903 * Removes attribute
1904 * @link http://www.php.net/manual/en/domelement.removeattributenode.php
1905 * @param oldnode DOMAttr <p>
1906 * The attribute node.
1907 * </p>
1908 * @return bool Returns true on success, false on failure.
1909 */
1910 public function removeAttributeNode (DOMAttr $oldnode) {}
1911
1912 /**
1913 * Gets elements by tagname
1914 * @link http://www.php.net/manual/en/domelement.getelementsbytagname.php
1915 * @param name string <p>
1916 * The tag name. Use * to return all elements within
1917 * the element tree.
1918 * </p>
1919 * @return DOMNodeList This function returns a new instance of the class
1920 * DOMNodeList of all matched elements.
1921 */
1922 public function getElementsByTagName ($name) {}
1923
1924 /**
1925 * Returns value of attribute
1926 * @link http://www.php.net/manual/en/domelement.getattributens.php
1927 * @param namespaceURI string <p>
1928 * The namespace URI.
1929 * </p>
1930 * @param localName string <p>
1931 * The local name.
1932 * </p>
1933 * @return string The value of the attribute, or an empty string if no attribute with the
1934 * given localName and namespaceURI
1935 * is found.
1936 */
1937 public function getAttributeNS ($namespaceURI, $localName) {}
1938
1939 /**
1940 * Adds new attribute
1941 * @link http://www.php.net/manual/en/domelement.setattributens.php
1942 * @param namespaceURI string <p>
1943 * The namespace URI.
1944 * </p>
1945 * @param qualifiedName string <p>
1946 * The qualified name of the attribute, as prefix:tagname.
1947 * </p>
1948 * @param value string <p>
1949 * The value of the attribute.
1950 * </p>
1951 * @return void
1952 */
1953 public function setAttributeNS ($namespaceURI, $qualifiedName, $value) {}
1954
1955 /**
1956 * Removes attribute
1957 * @link http://www.php.net/manual/en/domelement.removeattributens.php
1958 * @param namespaceURI string <p>
1959 * The namespace URI.
1960 * </p>
1961 * @param localName string <p>
1962 * The local name.
1963 * </p>
1964 * @return bool Returns true on success, false on failure.
1965 */
1966 public function removeAttributeNS ($namespaceURI, $localName) {}
1967
1968 /**
1969 * Returns attribute node
1970 * @link http://www.php.net/manual/en/domelement.getattributenodens.php
1971 * @param namespaceURI string <p>
1972 * The namespace URI.
1973 * </p>
1974 * @param localName string <p>
1975 * The local name.
1976 * </p>
1977 * @return DOMAttr The attribute node.
1978 */
1979 public function getAttributeNodeNS ($namespaceURI, $localName) {}
1980
1981 /**
1982 * Adds new attribute node to element
1983 * @link http://www.php.net/manual/en/domelement.setattributenodens.php
1984 * @param attr DOMAttr <p>
1985 * The attribute node.
1986 * </p>
1987 * @return DOMAttr the old node if the attribute has been replaced.
1988 */
1989 public function setAttributeNodeNS (DOMAttr $attr) {}
1990
1991 /**
1992 * Get elements by namespaceURI and localName
1993 * @link http://www.php.net/manual/en/domelement.getelementsbytagnamens.php
1994 * @param namespaceURI string <p>
1995 * The namespace URI.
1996 * </p>
1997 * @param localName string <p>
1998 * The local name. Use * to return all elements within
1999 * the element tree.
2000 * </p>
2001 * @return DOMNodeList This function returns a new instance of the class
2002 * DOMNodeList of all matched elements in the order in
2003 * which they are encountered in a preorder traversal of this element tree.
2004 */
2005 public function getElementsByTagNameNS ($namespaceURI, $localName) {}
2006
2007 /**
2008 * Checks to see if attribute exists
2009 * @link http://www.php.net/manual/en/domelement.hasattribute.php
2010 * @param name string <p>
2011 * The attribute name.
2012 * </p>
2013 * @return bool Returns true on success, false on failure.
2014 */
2015 public function hasAttribute ($name) {}
2016
2017 /**
2018 * Checks to see if attribute exists
2019 * @link http://www.php.net/manual/en/domelement.hasattributens.php
2020 * @param namespaceURI string <p>
2021 * The namespace URI.
2022 * </p>
2023 * @param localName string <p>
2024 * The local name.
2025 * </p>
2026 * @return bool Returns true on success, false on failure.
2027 */
2028 public function hasAttributeNS ($namespaceURI, $localName) {}
2029
2030 /**
2031 * Declares the attribute specified by name to be of type ID
2032 * @link http://www.php.net/manual/en/domelement.setidattribute.php
2033 * @param name string <p>
2034 * The name of the attribute.
2035 * </p>
2036 * @param isId bool <p>
2037 * Set it to true if you want name to be of type
2038 * ID, false otherwise.
2039 * </p>
2040 * @return void
2041 */
2042 public function setIdAttribute ($name, $isId) {}
2043
2044 /**
2045 * Declares the attribute specified by local name and namespace URI to be of type ID
2046 * @link http://www.php.net/manual/en/domelement.setidattributens.php
2047 * @param namespaceURI string <p>
2048 * The namespace URI of the attribute.
2049 * </p>
2050 * @param localName string <p>
2051 * The local name of the attribute, as prefix:tagname.
2052 * </p>
2053 * @param isId bool <p>
2054 * Set it to true if you want name to be of type
2055 * ID, false otherwise.
2056 * </p>
2057 * @return void
2058 */
2059 public function setIdAttributeNS ($namespaceURI, $localName, $isId) {}
2060
2061 /**
2062 * Declares the attribute specified by node to be of type ID
2063 * @link http://www.php.net/manual/en/domelement.setidattributenode.php
2064 * @param attr DOMAttr <p>
2065 * The attribute node.
2066 * </p>
2067 * @param isId bool <p>
2068 * Set it to true if you want name to be of type
2069 * ID, false otherwise.
2070 * </p>
2071 * @return void
2072 */
2073 public function setIdAttributeNode (DOMAttr $attr, $isId) {}
2074
2075 /**
2076 * Creates a new DOMElement object
2077 * @link http://www.php.net/manual/en/domelement.construct.php
2078 * @param name
2079 * @param value[optional]
2080 * @param uri[optional]
2081 */
2082 public function __construct ($name, $value, $uri) {}
2083
2084 /**
2085 * Adds a new child before a reference node
2086 * @link http://www.php.net/manual/en/domnode.insertbefore.php
2087 * @param newnode DOMNode <p>
2088 * The new node.
2089 * </p>
2090 * @param refnode DOMNode[optional] <p>
2091 * The reference node. If not supplied, newnode is
2092 * appended to the children.
2093 * </p>
2094 * @return DOMNode The inserted node.
2095 */
2096 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
2097
2098 /**
2099 * Replaces a child
2100 * @link http://www.php.net/manual/en/domnode.replacechild.php
2101 * @param newnode DOMNode <p>
2102 * The new node. It must be a member of the target document, i.e.
2103 * created by one of the DOMDocument->createXXX() methods or imported in
2104 * the document by .
2105 * </p>
2106 * @param oldnode DOMNode <p>
2107 * The old node.
2108 * </p>
2109 * @return DOMNode The old node or false if an error occur.
2110 */
2111 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
2112
2113 /**
2114 * Removes child from list of children
2115 * @link http://www.php.net/manual/en/domnode.removechild.php
2116 * @param oldnode DOMNode <p>
2117 * The removed child.
2118 * </p>
2119 * @return DOMNode If the child could be removed the function returns the old child.
2120 */
2121 public function removeChild (DOMNode $oldnode) {}
2122
2123 /**
2124 * Adds new child at the end of the children
2125 * @link http://www.php.net/manual/en/domnode.appendchild.php
2126 * @param newnode DOMNode <p>
2127 * The appended child.
2128 * </p>
2129 * @return DOMNode The node added.
2130 */
2131 public function appendChild (DOMNode $newnode) {}
2132
2133 /**
2134 * Checks if node has children
2135 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
2136 * @return bool Returns true on success, false on failure.
2137 */
2138 public function hasChildNodes () {}
2139
2140 /**
2141 * Clones a node
2142 * @link http://www.php.net/manual/en/domnode.clonenode.php
2143 * @param deep bool[optional] <p>
2144 * Indicates whether to copy all descendant nodes. This parameter is
2145 * defaulted to false.
2146 * </p>
2147 * @return DOMNode The cloned node.
2148 */
2149 public function cloneNode ($deep = null) {}
2150
2151 /**
2152 * Normalizes the node
2153 * @link http://www.php.net/manual/en/domnode.normalize.php
2154 * @return void
2155 */
2156 public function normalize () {}
2157
2158 /**
2159 * Checks if feature is supported for specified version
2160 * @link http://www.php.net/manual/en/domnode.issupported.php
2161 * @param feature string <p>
2162 * The feature to test. See the example of
2163 * DOMImplementation::hasFeature for a
2164 * list of features.
2165 * </p>
2166 * @param version string <p>
2167 * The version number of the feature to test.
2168 * </p>
2169 * @return bool Returns true on success, false on failure.
2170 */
2171 public function isSupported ($feature, $version) {}
2172
2173 /**
2174 * Checks if node has attributes
2175 * @link http://www.php.net/manual/en/domnode.hasattributes.php
2176 * @return bool Returns true on success, false on failure.
2177 */
2178 public function hasAttributes () {}
2179
2180 /**
2181 * @param other DOMNode
2182 */
2183 public function compareDocumentPosition (DOMNode $other) {}
2184
2185 /**
2186 * Indicates if two nodes are the same node
2187 * @link http://www.php.net/manual/en/domnode.issamenode.php
2188 * @param node DOMNode <p>
2189 * The compared node.
2190 * </p>
2191 * @return bool Returns true on success, false on failure.
2192 */
2193 public function isSameNode (DOMNode $node) {}
2194
2195 /**
2196 * Gets the namespace prefix of the node based on the namespace URI
2197 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
2198 * @param namespaceURI string <p>
2199 * The namespace URI.
2200 * </p>
2201 * @return string The prefix of the namespace.
2202 */
2203 public function lookupPrefix ($namespaceURI) {}
2204
2205 /**
2206 * Checks if the specified namespaceURI is the default namespace or not
2207 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
2208 * @param namespaceURI string <p>
2209 * The namespace URI to look for.
2210 * </p>
2211 * @return bool Return true if namespaceURI is the default
2212 * namespace, false otherwise.
2213 */
2214 public function isDefaultNamespace ($namespaceURI) {}
2215
2216 /**
2217 * Gets the namespace URI of the node based on the prefix
2218 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
2219 * @param prefix string <p>
2220 * The prefix of the namespace.
2221 * </p>
2222 * @return string The namespace URI of the node.
2223 */
2224 public function lookupNamespaceUri ($prefix) {}
2225
2226 /**
2227 * @param arg DOMNode
2228 */
2229 public function isEqualNode (DOMNode $arg) {}
2230
2231 /**
2232 * @param feature
2233 * @param version
2234 */
2235 public function getFeature ($feature, $version) {}
2236
2237 /**
2238 * @param key
2239 * @param data
2240 * @param handler
2241 */
2242 public function setUserData ($key, $data, $handler) {}
2243
2244 /**
2245 * @param key
2246 */
2247 public function getUserData ($key) {}
2248
2249 /**
2250 * Get an XPath for a node
2251 * @link http://www.php.net/manual/en/domnode.getnodepath.php
2252 * @return string a string containing the XPath, or &null; in case of an error.
2253 */
2254 public function getNodePath () {}
2255
2256 /**
2257 * Get line number for a node
2258 * @link http://www.php.net/manual/en/domnode.getlineno.php
2259 * @return int Always returns the line number where the node was defined in.
2260 */
2261 public function getLineNo () {}
2262
2263 /**
2264 * Canonicalize nodes to a string
2265 * @link http://www.php.net/manual/en/domnode.c14n.php
2266 * @param exclusive bool[optional] <p>
2267 * Enable exclusive parsing of only the nodes matched by the provided
2268 * xpath or namespace prefixes.
2269 * </p>
2270 * @param with_comments bool[optional] <p>
2271 * Retain comments in output.
2272 * </p>
2273 * @param xpath array[optional] <p>
2274 * An array of xpaths to filter the nodes by.
2275 * </p>
2276 * @param ns_prefixes array[optional] <p>
2277 * An array of namespace prefixes to filter the nodes by.
2278 * </p>
2279 * @return string canonicalized nodes as a string&return.falseforfailure;
2280 */
2281 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
2282
2283 /**
2284 * Canonicalize nodes to a file
2285 * @link http://www.php.net/manual/en/domnode.c14nfile.php
2286 * @param uri string <p>
2287 * Path to write the output to.
2288 * </p>
2289 * @param exclusive bool[optional] <p>
2290 * Enable exclusive parsing of only the nodes matched by the provided
2291 * xpath or namespace prefixes.
2292 * </p>
2293 * @param with_comments bool[optional] <p>
2294 * Retain comments in output.
2295 * </p>
2296 * @param xpath array[optional] <p>
2297 * An array of xpaths to filter the nodes by.
2298 * </p>
2299 * @param ns_prefixes array[optional] <p>
2300 * An array of namespace prefixes to filter the nodes by.
2301 * </p>
2302 * @return int Number of bytes written&return.falseforfailure;
2303 */
2304 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
2305
2306 }
2307
2308 class DOMText extends DOMCharacterData {
2309
2310 /**
2311 * Breaks this node into two nodes at the specified offset
2312 * @link http://www.php.net/manual/en/domtext.splittext.php
2313 * @param offset int <p>
2314 * The offset at which to split, starting from 0.
2315 * </p>
2316 * @return DOMText The new node of the same type, which contains all the content at and after the
2317 * offset.
2318 */
2319 public function splitText ($offset) {}
2320
2321 /**
2322 * Indicates whether this text node contains whitespace
2323 * @link http://www.php.net/manual/en/domtext.iswhitespaceinelementcontent.php
2324 * @return bool true if node contains zero or more whitespace characters and
2325 * nothing else. Returns false otherwise.
2326 */
2327 public function isWhitespaceInElementContent () {}
2328
2329 public function isElementContentWhitespace () {}
2330
2331 /**
2332 * @param content
2333 */
2334 public function replaceWholeText ($content) {}
2335
2336 /**
2337 * Creates a new <classname>DOMText</classname> object
2338 * @link http://www.php.net/manual/en/domtext.construct.php
2339 * @param value[optional]
2340 */
2341 public function __construct ($value) {}
2342
2343 /**
2344 * Extracts a range of data from the node
2345 * @link http://www.php.net/manual/en/domcharacterdata.substringdata.php
2346 * @param offset int <p>
2347 * Start offset of substring to extract.
2348 * </p>
2349 * @param count int <p>
2350 * The number of characters to extract.
2351 * </p>
2352 * @return string The specified substring. If the sum of offset
2353 * and count exceeds the length, then all 16-bit units
2354 * to the end of the data are returned.
2355 */
2356 public function substringData ($offset, $count) {}
2357
2358 /**
2359 * Append the string to the end of the character data of the node
2360 * @link http://www.php.net/manual/en/domcharacterdata.appenddata.php
2361 * @param data string <p>
2362 * The string to append.
2363 * </p>
2364 * @return void
2365 */
2366 public function appendData ($data) {}
2367
2368 /**
2369 * Insert a string at the specified 16-bit unit offset
2370 * @link http://www.php.net/manual/en/domcharacterdata.insertdata.php
2371 * @param offset int <p>
2372 * The character offset at which to insert.
2373 * </p>
2374 * @param data string <p>
2375 * The string to insert.
2376 * </p>
2377 * @return void
2378 */
2379 public function insertData ($offset, $data) {}
2380
2381 /**
2382 * Remove a range of characters from the node
2383 * @link http://www.php.net/manual/en/domcharacterdata.deletedata.php
2384 * @param offset int <p>
2385 * The offset from which to start removing.
2386 * </p>
2387 * @param count int <p>
2388 * The number of characters to delete. If the sum of
2389 * offset and count exceeds
2390 * the length, then all characters to the end of the data are deleted.
2391 * </p>
2392 * @return void
2393 */
2394 public function deleteData ($offset, $count) {}
2395
2396 /**
2397 * Replace a substring within the DOMCharacterData node
2398 * @link http://www.php.net/manual/en/domcharacterdata.replacedata.php
2399 * @param offset int <p>
2400 * The offset from which to start replacing.
2401 * </p>
2402 * @param count int <p>
2403 * The number of characters to replace. If the sum of
2404 * offset and count exceeds
2405 * the length, then all characters to the end of the data are replaced.
2406 * </p>
2407 * @param data string <p>
2408 * The string with which the range must be replaced.
2409 * </p>
2410 * @return void
2411 */
2412 public function replaceData ($offset, $count, $data) {}
2413
2414 /**
2415 * Adds a new child before a reference node
2416 * @link http://www.php.net/manual/en/domnode.insertbefore.php
2417 * @param newnode DOMNode <p>
2418 * The new node.
2419 * </p>
2420 * @param refnode DOMNode[optional] <p>
2421 * The reference node. If not supplied, newnode is
2422 * appended to the children.
2423 * </p>
2424 * @return DOMNode The inserted node.
2425 */
2426 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
2427
2428 /**
2429 * Replaces a child
2430 * @link http://www.php.net/manual/en/domnode.replacechild.php
2431 * @param newnode DOMNode <p>
2432 * The new node. It must be a member of the target document, i.e.
2433 * created by one of the DOMDocument->createXXX() methods or imported in
2434 * the document by .
2435 * </p>
2436 * @param oldnode DOMNode <p>
2437 * The old node.
2438 * </p>
2439 * @return DOMNode The old node or false if an error occur.
2440 */
2441 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
2442
2443 /**
2444 * Removes child from list of children
2445 * @link http://www.php.net/manual/en/domnode.removechild.php
2446 * @param oldnode DOMNode <p>
2447 * The removed child.
2448 * </p>
2449 * @return DOMNode If the child could be removed the function returns the old child.
2450 */
2451 public function removeChild (DOMNode $oldnode) {}
2452
2453 /**
2454 * Adds new child at the end of the children
2455 * @link http://www.php.net/manual/en/domnode.appendchild.php
2456 * @param newnode DOMNode <p>
2457 * The appended child.
2458 * </p>
2459 * @return DOMNode The node added.
2460 */
2461 public function appendChild (DOMNode $newnode) {}
2462
2463 /**
2464 * Checks if node has children
2465 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
2466 * @return bool Returns true on success, false on failure.
2467 */
2468 public function hasChildNodes () {}
2469
2470 /**
2471 * Clones a node
2472 * @link http://www.php.net/manual/en/domnode.clonenode.php
2473 * @param deep bool[optional] <p>
2474 * Indicates whether to copy all descendant nodes. This parameter is
2475 * defaulted to false.
2476 * </p>
2477 * @return DOMNode The cloned node.
2478 */
2479 public function cloneNode ($deep = null) {}
2480
2481 /**
2482 * Normalizes the node
2483 * @link http://www.php.net/manual/en/domnode.normalize.php
2484 * @return void
2485 */
2486 public function normalize () {}
2487
2488 /**
2489 * Checks if feature is supported for specified version
2490 * @link http://www.php.net/manual/en/domnode.issupported.php
2491 * @param feature string <p>
2492 * The feature to test. See the example of
2493 * DOMImplementation::hasFeature for a
2494 * list of features.
2495 * </p>
2496 * @param version string <p>
2497 * The version number of the feature to test.
2498 * </p>
2499 * @return bool Returns true on success, false on failure.
2500 */
2501 public function isSupported ($feature, $version) {}
2502
2503 /**
2504 * Checks if node has attributes
2505 * @link http://www.php.net/manual/en/domnode.hasattributes.php
2506 * @return bool Returns true on success, false on failure.
2507 */
2508 public function hasAttributes () {}
2509
2510 /**
2511 * @param other DOMNode
2512 */
2513 public function compareDocumentPosition (DOMNode $other) {}
2514
2515 /**
2516 * Indicates if two nodes are the same node
2517 * @link http://www.php.net/manual/en/domnode.issamenode.php
2518 * @param node DOMNode <p>
2519 * The compared node.
2520 * </p>
2521 * @return bool Returns true on success, false on failure.
2522 */
2523 public function isSameNode (DOMNode $node) {}
2524
2525 /**
2526 * Gets the namespace prefix of the node based on the namespace URI
2527 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
2528 * @param namespaceURI string <p>
2529 * The namespace URI.
2530 * </p>
2531 * @return string The prefix of the namespace.
2532 */
2533 public function lookupPrefix ($namespaceURI) {}
2534
2535 /**
2536 * Checks if the specified namespaceURI is the default namespace or not
2537 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
2538 * @param namespaceURI string <p>
2539 * The namespace URI to look for.
2540 * </p>
2541 * @return bool Return true if namespaceURI is the default
2542 * namespace, false otherwise.
2543 */
2544 public function isDefaultNamespace ($namespaceURI) {}
2545
2546 /**
2547 * Gets the namespace URI of the node based on the prefix
2548 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
2549 * @param prefix string <p>
2550 * The prefix of the namespace.
2551 * </p>
2552 * @return string The namespace URI of the node.
2553 */
2554 public function lookupNamespaceUri ($prefix) {}
2555
2556 /**
2557 * @param arg DOMNode
2558 */
2559 public function isEqualNode (DOMNode $arg) {}
2560
2561 /**
2562 * @param feature
2563 * @param version
2564 */
2565 public function getFeature ($feature, $version) {}
2566
2567 /**
2568 * @param key
2569 * @param data
2570 * @param handler
2571 */
2572 public function setUserData ($key, $data, $handler) {}
2573
2574 /**
2575 * @param key
2576 */
2577 public function getUserData ($key) {}
2578
2579 /**
2580 * Get an XPath for a node
2581 * @link http://www.php.net/manual/en/domnode.getnodepath.php
2582 * @return string a string containing the XPath, or &null; in case of an error.
2583 */
2584 public function getNodePath () {}
2585
2586 /**
2587 * Get line number for a node
2588 * @link http://www.php.net/manual/en/domnode.getlineno.php
2589 * @return int Always returns the line number where the node was defined in.
2590 */
2591 public function getLineNo () {}
2592
2593 /**
2594 * Canonicalize nodes to a string
2595 * @link http://www.php.net/manual/en/domnode.c14n.php
2596 * @param exclusive bool[optional] <p>
2597 * Enable exclusive parsing of only the nodes matched by the provided
2598 * xpath or namespace prefixes.
2599 * </p>
2600 * @param with_comments bool[optional] <p>
2601 * Retain comments in output.
2602 * </p>
2603 * @param xpath array[optional] <p>
2604 * An array of xpaths to filter the nodes by.
2605 * </p>
2606 * @param ns_prefixes array[optional] <p>
2607 * An array of namespace prefixes to filter the nodes by.
2608 * </p>
2609 * @return string canonicalized nodes as a string&return.falseforfailure;
2610 */
2611 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
2612
2613 /**
2614 * Canonicalize nodes to a file
2615 * @link http://www.php.net/manual/en/domnode.c14nfile.php
2616 * @param uri string <p>
2617 * Path to write the output to.
2618 * </p>
2619 * @param exclusive bool[optional] <p>
2620 * Enable exclusive parsing of only the nodes matched by the provided
2621 * xpath or namespace prefixes.
2622 * </p>
2623 * @param with_comments bool[optional] <p>
2624 * Retain comments in output.
2625 * </p>
2626 * @param xpath array[optional] <p>
2627 * An array of xpaths to filter the nodes by.
2628 * </p>
2629 * @param ns_prefixes array[optional] <p>
2630 * An array of namespace prefixes to filter the nodes by.
2631 * </p>
2632 * @return int Number of bytes written&return.falseforfailure;
2633 */
2634 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
2635
2636 }
2637
2638 class DOMComment extends DOMCharacterData {
2639
2640 /**
2641 * Creates a new DOMComment object
2642 * @link http://www.php.net/manual/en/domcomment.construct.php
2643 * @param value[optional]
2644 */
2645 public function __construct ($value) {}
2646
2647 /**
2648 * Extracts a range of data from the node
2649 * @link http://www.php.net/manual/en/domcharacterdata.substringdata.php
2650 * @param offset int <p>
2651 * Start offset of substring to extract.
2652 * </p>
2653 * @param count int <p>
2654 * The number of characters to extract.
2655 * </p>
2656 * @return string The specified substring. If the sum of offset
2657 * and count exceeds the length, then all 16-bit units
2658 * to the end of the data are returned.
2659 */
2660 public function substringData ($offset, $count) {}
2661
2662 /**
2663 * Append the string to the end of the character data of the node
2664 * @link http://www.php.net/manual/en/domcharacterdata.appenddata.php
2665 * @param data string <p>
2666 * The string to append.
2667 * </p>
2668 * @return void
2669 */
2670 public function appendData ($data) {}
2671
2672 /**
2673 * Insert a string at the specified 16-bit unit offset
2674 * @link http://www.php.net/manual/en/domcharacterdata.insertdata.php
2675 * @param offset int <p>
2676 * The character offset at which to insert.
2677 * </p>
2678 * @param data string <p>
2679 * The string to insert.
2680 * </p>
2681 * @return void
2682 */
2683 public function insertData ($offset, $data) {}
2684
2685 /**
2686 * Remove a range of characters from the node
2687 * @link http://www.php.net/manual/en/domcharacterdata.deletedata.php
2688 * @param offset int <p>
2689 * The offset from which to start removing.
2690 * </p>
2691 * @param count int <p>
2692 * The number of characters to delete. If the sum of
2693 * offset and count exceeds
2694 * the length, then all characters to the end of the data are deleted.
2695 * </p>
2696 * @return void
2697 */
2698 public function deleteData ($offset, $count) {}
2699
2700 /**
2701 * Replace a substring within the DOMCharacterData node
2702 * @link http://www.php.net/manual/en/domcharacterdata.replacedata.php
2703 * @param offset int <p>
2704 * The offset from which to start replacing.
2705 * </p>
2706 * @param count int <p>
2707 * The number of characters to replace. If the sum of
2708 * offset and count exceeds
2709 * the length, then all characters to the end of the data are replaced.
2710 * </p>
2711 * @param data string <p>
2712 * The string with which the range must be replaced.
2713 * </p>
2714 * @return void
2715 */
2716 public function replaceData ($offset, $count, $data) {}
2717
2718 /**
2719 * Adds a new child before a reference node
2720 * @link http://www.php.net/manual/en/domnode.insertbefore.php
2721 * @param newnode DOMNode <p>
2722 * The new node.
2723 * </p>
2724 * @param refnode DOMNode[optional] <p>
2725 * The reference node. If not supplied, newnode is
2726 * appended to the children.
2727 * </p>
2728 * @return DOMNode The inserted node.
2729 */
2730 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
2731
2732 /**
2733 * Replaces a child
2734 * @link http://www.php.net/manual/en/domnode.replacechild.php
2735 * @param newnode DOMNode <p>
2736 * The new node. It must be a member of the target document, i.e.
2737 * created by one of the DOMDocument->createXXX() methods or imported in
2738 * the document by .
2739 * </p>
2740 * @param oldnode DOMNode <p>
2741 * The old node.
2742 * </p>
2743 * @return DOMNode The old node or false if an error occur.
2744 */
2745 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
2746
2747 /**
2748 * Removes child from list of children
2749 * @link http://www.php.net/manual/en/domnode.removechild.php
2750 * @param oldnode DOMNode <p>
2751 * The removed child.
2752 * </p>
2753 * @return DOMNode If the child could be removed the function returns the old child.
2754 */
2755 public function removeChild (DOMNode $oldnode) {}
2756
2757 /**
2758 * Adds new child at the end of the children
2759 * @link http://www.php.net/manual/en/domnode.appendchild.php
2760 * @param newnode DOMNode <p>
2761 * The appended child.
2762 * </p>
2763 * @return DOMNode The node added.
2764 */
2765 public function appendChild (DOMNode $newnode) {}
2766
2767 /**
2768 * Checks if node has children
2769 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
2770 * @return bool Returns true on success, false on failure.
2771 */
2772 public function hasChildNodes () {}
2773
2774 /**
2775 * Clones a node
2776 * @link http://www.php.net/manual/en/domnode.clonenode.php
2777 * @param deep bool[optional] <p>
2778 * Indicates whether to copy all descendant nodes. This parameter is
2779 * defaulted to false.
2780 * </p>
2781 * @return DOMNode The cloned node.
2782 */
2783 public function cloneNode ($deep = null) {}
2784
2785 /**
2786 * Normalizes the node
2787 * @link http://www.php.net/manual/en/domnode.normalize.php
2788 * @return void
2789 */
2790 public function normalize () {}
2791
2792 /**
2793 * Checks if feature is supported for specified version
2794 * @link http://www.php.net/manual/en/domnode.issupported.php
2795 * @param feature string <p>
2796 * The feature to test. See the example of
2797 * DOMImplementation::hasFeature for a
2798 * list of features.
2799 * </p>
2800 * @param version string <p>
2801 * The version number of the feature to test.
2802 * </p>
2803 * @return bool Returns true on success, false on failure.
2804 */
2805 public function isSupported ($feature, $version) {}
2806
2807 /**
2808 * Checks if node has attributes
2809 * @link http://www.php.net/manual/en/domnode.hasattributes.php
2810 * @return bool Returns true on success, false on failure.
2811 */
2812 public function hasAttributes () {}
2813
2814 /**
2815 * @param other DOMNode
2816 */
2817 public function compareDocumentPosition (DOMNode $other) {}
2818
2819 /**
2820 * Indicates if two nodes are the same node
2821 * @link http://www.php.net/manual/en/domnode.issamenode.php
2822 * @param node DOMNode <p>
2823 * The compared node.
2824 * </p>
2825 * @return bool Returns true on success, false on failure.
2826 */
2827 public function isSameNode (DOMNode $node) {}
2828
2829 /**
2830 * Gets the namespace prefix of the node based on the namespace URI
2831 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
2832 * @param namespaceURI string <p>
2833 * The namespace URI.
2834 * </p>
2835 * @return string The prefix of the namespace.
2836 */
2837 public function lookupPrefix ($namespaceURI) {}
2838
2839 /**
2840 * Checks if the specified namespaceURI is the default namespace or not
2841 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
2842 * @param namespaceURI string <p>
2843 * The namespace URI to look for.
2844 * </p>
2845 * @return bool Return true if namespaceURI is the default
2846 * namespace, false otherwise.
2847 */
2848 public function isDefaultNamespace ($namespaceURI) {}
2849
2850 /**
2851 * Gets the namespace URI of the node based on the prefix
2852 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
2853 * @param prefix string <p>
2854 * The prefix of the namespace.
2855 * </p>
2856 * @return string The namespace URI of the node.
2857 */
2858 public function lookupNamespaceUri ($prefix) {}
2859
2860 /**
2861 * @param arg DOMNode
2862 */
2863 public function isEqualNode (DOMNode $arg) {}
2864
2865 /**
2866 * @param feature
2867 * @param version
2868 */
2869 public function getFeature ($feature, $version) {}
2870
2871 /**
2872 * @param key
2873 * @param data
2874 * @param handler
2875 */
2876 public function setUserData ($key, $data, $handler) {}
2877
2878 /**
2879 * @param key
2880 */
2881 public function getUserData ($key) {}
2882
2883 /**
2884 * Get an XPath for a node
2885 * @link http://www.php.net/manual/en/domnode.getnodepath.php
2886 * @return string a string containing the XPath, or &null; in case of an error.
2887 */
2888 public function getNodePath () {}
2889
2890 /**
2891 * Get line number for a node
2892 * @link http://www.php.net/manual/en/domnode.getlineno.php
2893 * @return int Always returns the line number where the node was defined in.
2894 */
2895 public function getLineNo () {}
2896
2897 /**
2898 * Canonicalize nodes to a string
2899 * @link http://www.php.net/manual/en/domnode.c14n.php
2900 * @param exclusive bool[optional] <p>
2901 * Enable exclusive parsing of only the nodes matched by the provided
2902 * xpath or namespace prefixes.
2903 * </p>
2904 * @param with_comments bool[optional] <p>
2905 * Retain comments in output.
2906 * </p>
2907 * @param xpath array[optional] <p>
2908 * An array of xpaths to filter the nodes by.
2909 * </p>
2910 * @param ns_prefixes array[optional] <p>
2911 * An array of namespace prefixes to filter the nodes by.
2912 * </p>
2913 * @return string canonicalized nodes as a string&return.falseforfailure;
2914 */
2915 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
2916
2917 /**
2918 * Canonicalize nodes to a file
2919 * @link http://www.php.net/manual/en/domnode.c14nfile.php
2920 * @param uri string <p>
2921 * Path to write the output to.
2922 * </p>
2923 * @param exclusive bool[optional] <p>
2924 * Enable exclusive parsing of only the nodes matched by the provided
2925 * xpath or namespace prefixes.
2926 * </p>
2927 * @param with_comments bool[optional] <p>
2928 * Retain comments in output.
2929 * </p>
2930 * @param xpath array[optional] <p>
2931 * An array of xpaths to filter the nodes by.
2932 * </p>
2933 * @param ns_prefixes array[optional] <p>
2934 * An array of namespace prefixes to filter the nodes by.
2935 * </p>
2936 * @return int Number of bytes written&return.falseforfailure;
2937 */
2938 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
2939
2940 }
2941
2942 class DOMTypeinfo {
2943 }
2944
2945 class DOMUserDataHandler {
2946
2947 public function handle () {}
2948
2949 }
2950
2951 class DOMDomError {
2952 }
2953
2954 class DOMErrorHandler {
2955
2956 /**
2957 * @param error DOMDomError
2958 */
2959 public function handleError (DOMDomError $error) {}
2960
2961 }
2962
2963 class DOMLocator {
2964 }
2965
2966 class DOMConfiguration {
2967
2968 /**
2969 * @param name
2970 * @param value
2971 */
2972 public function setParameter ($name, $value) {}
2973
2974 /**
2975 * @param name[optional]
2976 */
2977 public function getParameter ($name) {}
2978
2979 /**
2980 * @param name[optional]
2981 * @param value[optional]
2982 */
2983 public function canSetParameter ($name, $value) {}
2984
2985 }
2986
2987 class DOMCdataSection extends DOMText {
2988
2989 /**
2990 * Constructs a new DOMCdataSection object
2991 * @link http://www.php.net/manual/en/domcdatasection.construct.php
2992 * @param value
2993 */
2994 public function __construct ($value) {}
2995
2996 /**
2997 * Breaks this node into two nodes at the specified offset
2998 * @link http://www.php.net/manual/en/domtext.splittext.php
2999 * @param offset int <p>
3000 * The offset at which to split, starting from 0.
3001 * </p>
3002 * @return DOMText The new node of the same type, which contains all the content at and after the
3003 * offset.
3004 */
3005 public function splitText ($offset) {}
3006
3007 /**
3008 * Indicates whether this text node contains whitespace
3009 * @link http://www.php.net/manual/en/domtext.iswhitespaceinelementcontent.php
3010 * @return bool true if node contains zero or more whitespace characters and
3011 * nothing else. Returns false otherwise.
3012 */
3013 public function isWhitespaceInElementContent () {}
3014
3015 public function isElementContentWhitespace () {}
3016
3017 /**
3018 * @param content
3019 */
3020 public function replaceWholeText ($content) {}
3021
3022 /**
3023 * Extracts a range of data from the node
3024 * @link http://www.php.net/manual/en/domcharacterdata.substringdata.php
3025 * @param offset int <p>
3026 * Start offset of substring to extract.
3027 * </p>
3028 * @param count int <p>
3029 * The number of characters to extract.
3030 * </p>
3031 * @return string The specified substring. If the sum of offset
3032 * and count exceeds the length, then all 16-bit units
3033 * to the end of the data are returned.
3034 */
3035 public function substringData ($offset, $count) {}
3036
3037 /**
3038 * Append the string to the end of the character data of the node
3039 * @link http://www.php.net/manual/en/domcharacterdata.appenddata.php
3040 * @param data string <p>
3041 * The string to append.
3042 * </p>
3043 * @return void
3044 */
3045 public function appendData ($data) {}
3046
3047 /**
3048 * Insert a string at the specified 16-bit unit offset
3049 * @link http://www.php.net/manual/en/domcharacterdata.insertdata.php
3050 * @param offset int <p>
3051 * The character offset at which to insert.
3052 * </p>
3053 * @param data string <p>
3054 * The string to insert.
3055 * </p>
3056 * @return void
3057 */
3058 public function insertData ($offset, $data) {}
3059
3060 /**
3061 * Remove a range of characters from the node
3062 * @link http://www.php.net/manual/en/domcharacterdata.deletedata.php
3063 * @param offset int <p>
3064 * The offset from which to start removing.
3065 * </p>
3066 * @param count int <p>
3067 * The number of characters to delete. If the sum of
3068 * offset and count exceeds
3069 * the length, then all characters to the end of the data are deleted.
3070 * </p>
3071 * @return void
3072 */
3073 public function deleteData ($offset, $count) {}
3074
3075 /**
3076 * Replace a substring within the DOMCharacterData node
3077 * @link http://www.php.net/manual/en/domcharacterdata.replacedata.php
3078 * @param offset int <p>
3079 * The offset from which to start replacing.
3080 * </p>
3081 * @param count int <p>
3082 * The number of characters to replace. If the sum of
3083 * offset and count exceeds
3084 * the length, then all characters to the end of the data are replaced.
3085 * </p>
3086 * @param data string <p>
3087 * The string with which the range must be replaced.
3088 * </p>
3089 * @return void
3090 */
3091 public function replaceData ($offset, $count, $data) {}
3092
3093 /**
3094 * Adds a new child before a reference node
3095 * @link http://www.php.net/manual/en/domnode.insertbefore.php
3096 * @param newnode DOMNode <p>
3097 * The new node.
3098 * </p>
3099 * @param refnode DOMNode[optional] <p>
3100 * The reference node. If not supplied, newnode is
3101 * appended to the children.
3102 * </p>
3103 * @return DOMNode The inserted node.
3104 */
3105 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
3106
3107 /**
3108 * Replaces a child
3109 * @link http://www.php.net/manual/en/domnode.replacechild.php
3110 * @param newnode DOMNode <p>
3111 * The new node. It must be a member of the target document, i.e.
3112 * created by one of the DOMDocument->createXXX() methods or imported in
3113 * the document by .
3114 * </p>
3115 * @param oldnode DOMNode <p>
3116 * The old node.
3117 * </p>
3118 * @return DOMNode The old node or false if an error occur.
3119 */
3120 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
3121
3122 /**
3123 * Removes child from list of children
3124 * @link http://www.php.net/manual/en/domnode.removechild.php
3125 * @param oldnode DOMNode <p>
3126 * The removed child.
3127 * </p>
3128 * @return DOMNode If the child could be removed the function returns the old child.
3129 */
3130 public function removeChild (DOMNode $oldnode) {}
3131
3132 /**
3133 * Adds new child at the end of the children
3134 * @link http://www.php.net/manual/en/domnode.appendchild.php
3135 * @param newnode DOMNode <p>
3136 * The appended child.
3137 * </p>
3138 * @return DOMNode The node added.
3139 */
3140 public function appendChild (DOMNode $newnode) {}
3141
3142 /**
3143 * Checks if node has children
3144 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
3145 * @return bool Returns true on success, false on failure.
3146 */
3147 public function hasChildNodes () {}
3148
3149 /**
3150 * Clones a node
3151 * @link http://www.php.net/manual/en/domnode.clonenode.php
3152 * @param deep bool[optional] <p>
3153 * Indicates whether to copy all descendant nodes. This parameter is
3154 * defaulted to false.
3155 * </p>
3156 * @return DOMNode The cloned node.
3157 */
3158 public function cloneNode ($deep = null) {}
3159
3160 /**
3161 * Normalizes the node
3162 * @link http://www.php.net/manual/en/domnode.normalize.php
3163 * @return void
3164 */
3165 public function normalize () {}
3166
3167 /**
3168 * Checks if feature is supported for specified version
3169 * @link http://www.php.net/manual/en/domnode.issupported.php
3170 * @param feature string <p>
3171 * The feature to test. See the example of
3172 * DOMImplementation::hasFeature for a
3173 * list of features.
3174 * </p>
3175 * @param version string <p>
3176 * The version number of the feature to test.
3177 * </p>
3178 * @return bool Returns true on success, false on failure.
3179 */
3180 public function isSupported ($feature, $version) {}
3181
3182 /**
3183 * Checks if node has attributes
3184 * @link http://www.php.net/manual/en/domnode.hasattributes.php
3185 * @return bool Returns true on success, false on failure.
3186 */
3187 public function hasAttributes () {}
3188
3189 /**
3190 * @param other DOMNode
3191 */
3192 public function compareDocumentPosition (DOMNode $other) {}
3193
3194 /**
3195 * Indicates if two nodes are the same node
3196 * @link http://www.php.net/manual/en/domnode.issamenode.php
3197 * @param node DOMNode <p>
3198 * The compared node.
3199 * </p>
3200 * @return bool Returns true on success, false on failure.
3201 */
3202 public function isSameNode (DOMNode $node) {}
3203
3204 /**
3205 * Gets the namespace prefix of the node based on the namespace URI
3206 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
3207 * @param namespaceURI string <p>
3208 * The namespace URI.
3209 * </p>
3210 * @return string The prefix of the namespace.
3211 */
3212 public function lookupPrefix ($namespaceURI) {}
3213
3214 /**
3215 * Checks if the specified namespaceURI is the default namespace or not
3216 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
3217 * @param namespaceURI string <p>
3218 * The namespace URI to look for.
3219 * </p>
3220 * @return bool Return true if namespaceURI is the default
3221 * namespace, false otherwise.
3222 */
3223 public function isDefaultNamespace ($namespaceURI) {}
3224
3225 /**
3226 * Gets the namespace URI of the node based on the prefix
3227 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
3228 * @param prefix string <p>
3229 * The prefix of the namespace.
3230 * </p>
3231 * @return string The namespace URI of the node.
3232 */
3233 public function lookupNamespaceUri ($prefix) {}
3234
3235 /**
3236 * @param arg DOMNode
3237 */
3238 public function isEqualNode (DOMNode $arg) {}
3239
3240 /**
3241 * @param feature
3242 * @param version
3243 */
3244 public function getFeature ($feature, $version) {}
3245
3246 /**
3247 * @param key
3248 * @param data
3249 * @param handler
3250 */
3251 public function setUserData ($key, $data, $handler) {}
3252
3253 /**
3254 * @param key
3255 */
3256 public function getUserData ($key) {}
3257
3258 /**
3259 * Get an XPath for a node
3260 * @link http://www.php.net/manual/en/domnode.getnodepath.php
3261 * @return string a string containing the XPath, or &null; in case of an error.
3262 */
3263 public function getNodePath () {}
3264
3265 /**
3266 * Get line number for a node
3267 * @link http://www.php.net/manual/en/domnode.getlineno.php
3268 * @return int Always returns the line number where the node was defined in.
3269 */
3270 public function getLineNo () {}
3271
3272 /**
3273 * Canonicalize nodes to a string
3274 * @link http://www.php.net/manual/en/domnode.c14n.php
3275 * @param exclusive bool[optional] <p>
3276 * Enable exclusive parsing of only the nodes matched by the provided
3277 * xpath or namespace prefixes.
3278 * </p>
3279 * @param with_comments bool[optional] <p>
3280 * Retain comments in output.
3281 * </p>
3282 * @param xpath array[optional] <p>
3283 * An array of xpaths to filter the nodes by.
3284 * </p>
3285 * @param ns_prefixes array[optional] <p>
3286 * An array of namespace prefixes to filter the nodes by.
3287 * </p>
3288 * @return string canonicalized nodes as a string&return.falseforfailure;
3289 */
3290 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
3291
3292 /**
3293 * Canonicalize nodes to a file
3294 * @link http://www.php.net/manual/en/domnode.c14nfile.php
3295 * @param uri string <p>
3296 * Path to write the output to.
3297 * </p>
3298 * @param exclusive bool[optional] <p>
3299 * Enable exclusive parsing of only the nodes matched by the provided
3300 * xpath or namespace prefixes.
3301 * </p>
3302 * @param with_comments bool[optional] <p>
3303 * Retain comments in output.
3304 * </p>
3305 * @param xpath array[optional] <p>
3306 * An array of xpaths to filter the nodes by.
3307 * </p>
3308 * @param ns_prefixes array[optional] <p>
3309 * An array of namespace prefixes to filter the nodes by.
3310 * </p>
3311 * @return int Number of bytes written&return.falseforfailure;
3312 */
3313 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
3314
3315 }
3316
3317 class DOMDocumentType extends DOMNode {
3318
3319 /**
3320 * Adds a new child before a reference node
3321 * @link http://www.php.net/manual/en/domnode.insertbefore.php
3322 * @param newnode DOMNode <p>
3323 * The new node.
3324 * </p>
3325 * @param refnode DOMNode[optional] <p>
3326 * The reference node. If not supplied, newnode is
3327 * appended to the children.
3328 * </p>
3329 * @return DOMNode The inserted node.
3330 */
3331 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
3332
3333 /**
3334 * Replaces a child
3335 * @link http://www.php.net/manual/en/domnode.replacechild.php
3336 * @param newnode DOMNode <p>
3337 * The new node. It must be a member of the target document, i.e.
3338 * created by one of the DOMDocument->createXXX() methods or imported in
3339 * the document by .
3340 * </p>
3341 * @param oldnode DOMNode <p>
3342 * The old node.
3343 * </p>
3344 * @return DOMNode The old node or false if an error occur.
3345 */
3346 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
3347
3348 /**
3349 * Removes child from list of children
3350 * @link http://www.php.net/manual/en/domnode.removechild.php
3351 * @param oldnode DOMNode <p>
3352 * The removed child.
3353 * </p>
3354 * @return DOMNode If the child could be removed the function returns the old child.
3355 */
3356 public function removeChild (DOMNode $oldnode) {}
3357
3358 /**
3359 * Adds new child at the end of the children
3360 * @link http://www.php.net/manual/en/domnode.appendchild.php
3361 * @param newnode DOMNode <p>
3362 * The appended child.
3363 * </p>
3364 * @return DOMNode The node added.
3365 */
3366 public function appendChild (DOMNode $newnode) {}
3367
3368 /**
3369 * Checks if node has children
3370 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
3371 * @return bool Returns true on success, false on failure.
3372 */
3373 public function hasChildNodes () {}
3374
3375 /**
3376 * Clones a node
3377 * @link http://www.php.net/manual/en/domnode.clonenode.php
3378 * @param deep bool[optional] <p>
3379 * Indicates whether to copy all descendant nodes. This parameter is
3380 * defaulted to false.
3381 * </p>
3382 * @return DOMNode The cloned node.
3383 */
3384 public function cloneNode ($deep = null) {}
3385
3386 /**
3387 * Normalizes the node
3388 * @link http://www.php.net/manual/en/domnode.normalize.php
3389 * @return void
3390 */
3391 public function normalize () {}
3392
3393 /**
3394 * Checks if feature is supported for specified version
3395 * @link http://www.php.net/manual/en/domnode.issupported.php
3396 * @param feature string <p>
3397 * The feature to test. See the example of
3398 * DOMImplementation::hasFeature for a
3399 * list of features.
3400 * </p>
3401 * @param version string <p>
3402 * The version number of the feature to test.
3403 * </p>
3404 * @return bool Returns true on success, false on failure.
3405 */
3406 public function isSupported ($feature, $version) {}
3407
3408 /**
3409 * Checks if node has attributes
3410 * @link http://www.php.net/manual/en/domnode.hasattributes.php
3411 * @return bool Returns true on success, false on failure.
3412 */
3413 public function hasAttributes () {}
3414
3415 /**
3416 * @param other DOMNode
3417 */
3418 public function compareDocumentPosition (DOMNode $other) {}
3419
3420 /**
3421 * Indicates if two nodes are the same node
3422 * @link http://www.php.net/manual/en/domnode.issamenode.php
3423 * @param node DOMNode <p>
3424 * The compared node.
3425 * </p>
3426 * @return bool Returns true on success, false on failure.
3427 */
3428 public function isSameNode (DOMNode $node) {}
3429
3430 /**
3431 * Gets the namespace prefix of the node based on the namespace URI
3432 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
3433 * @param namespaceURI string <p>
3434 * The namespace URI.
3435 * </p>
3436 * @return string The prefix of the namespace.
3437 */
3438 public function lookupPrefix ($namespaceURI) {}
3439
3440 /**
3441 * Checks if the specified namespaceURI is the default namespace or not
3442 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
3443 * @param namespaceURI string <p>
3444 * The namespace URI to look for.
3445 * </p>
3446 * @return bool Return true if namespaceURI is the default
3447 * namespace, false otherwise.
3448 */
3449 public function isDefaultNamespace ($namespaceURI) {}
3450
3451 /**
3452 * Gets the namespace URI of the node based on the prefix
3453 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
3454 * @param prefix string <p>
3455 * The prefix of the namespace.
3456 * </p>
3457 * @return string The namespace URI of the node.
3458 */
3459 public function lookupNamespaceUri ($prefix) {}
3460
3461 /**
3462 * @param arg DOMNode
3463 */
3464 public function isEqualNode (DOMNode $arg) {}
3465
3466 /**
3467 * @param feature
3468 * @param version
3469 */
3470 public function getFeature ($feature, $version) {}
3471
3472 /**
3473 * @param key
3474 * @param data
3475 * @param handler
3476 */
3477 public function setUserData ($key, $data, $handler) {}
3478
3479 /**
3480 * @param key
3481 */
3482 public function getUserData ($key) {}
3483
3484 /**
3485 * Get an XPath for a node
3486 * @link http://www.php.net/manual/en/domnode.getnodepath.php
3487 * @return string a string containing the XPath, or &null; in case of an error.
3488 */
3489 public function getNodePath () {}
3490
3491 /**
3492 * Get line number for a node
3493 * @link http://www.php.net/manual/en/domnode.getlineno.php
3494 * @return int Always returns the line number where the node was defined in.
3495 */
3496 public function getLineNo () {}
3497
3498 /**
3499 * Canonicalize nodes to a string
3500 * @link http://www.php.net/manual/en/domnode.c14n.php
3501 * @param exclusive bool[optional] <p>
3502 * Enable exclusive parsing of only the nodes matched by the provided
3503 * xpath or namespace prefixes.
3504 * </p>
3505 * @param with_comments bool[optional] <p>
3506 * Retain comments in output.
3507 * </p>
3508 * @param xpath array[optional] <p>
3509 * An array of xpaths to filter the nodes by.
3510 * </p>
3511 * @param ns_prefixes array[optional] <p>
3512 * An array of namespace prefixes to filter the nodes by.
3513 * </p>
3514 * @return string canonicalized nodes as a string&return.falseforfailure;
3515 */
3516 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
3517
3518 /**
3519 * Canonicalize nodes to a file
3520 * @link http://www.php.net/manual/en/domnode.c14nfile.php
3521 * @param uri string <p>
3522 * Path to write the output to.
3523 * </p>
3524 * @param exclusive bool[optional] <p>
3525 * Enable exclusive parsing of only the nodes matched by the provided
3526 * xpath or namespace prefixes.
3527 * </p>
3528 * @param with_comments bool[optional] <p>
3529 * Retain comments in output.
3530 * </p>
3531 * @param xpath array[optional] <p>
3532 * An array of xpaths to filter the nodes by.
3533 * </p>
3534 * @param ns_prefixes array[optional] <p>
3535 * An array of namespace prefixes to filter the nodes by.
3536 * </p>
3537 * @return int Number of bytes written&return.falseforfailure;
3538 */
3539 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
3540
3541 }
3542
3543 class DOMNotation extends DOMNode {
3544
3545 /**
3546 * Adds a new child before a reference node
3547 * @link http://www.php.net/manual/en/domnode.insertbefore.php
3548 * @param newnode DOMNode <p>
3549 * The new node.
3550 * </p>
3551 * @param refnode DOMNode[optional] <p>
3552 * The reference node. If not supplied, newnode is
3553 * appended to the children.
3554 * </p>
3555 * @return DOMNode The inserted node.
3556 */
3557 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
3558
3559 /**
3560 * Replaces a child
3561 * @link http://www.php.net/manual/en/domnode.replacechild.php
3562 * @param newnode DOMNode <p>
3563 * The new node. It must be a member of the target document, i.e.
3564 * created by one of the DOMDocument->createXXX() methods or imported in
3565 * the document by .
3566 * </p>
3567 * @param oldnode DOMNode <p>
3568 * The old node.
3569 * </p>
3570 * @return DOMNode The old node or false if an error occur.
3571 */
3572 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
3573
3574 /**
3575 * Removes child from list of children
3576 * @link http://www.php.net/manual/en/domnode.removechild.php
3577 * @param oldnode DOMNode <p>
3578 * The removed child.
3579 * </p>
3580 * @return DOMNode If the child could be removed the function returns the old child.
3581 */
3582 public function removeChild (DOMNode $oldnode) {}
3583
3584 /**
3585 * Adds new child at the end of the children
3586 * @link http://www.php.net/manual/en/domnode.appendchild.php
3587 * @param newnode DOMNode <p>
3588 * The appended child.
3589 * </p>
3590 * @return DOMNode The node added.
3591 */
3592 public function appendChild (DOMNode $newnode) {}
3593
3594 /**
3595 * Checks if node has children
3596 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
3597 * @return bool Returns true on success, false on failure.
3598 */
3599 public function hasChildNodes () {}
3600
3601 /**
3602 * Clones a node
3603 * @link http://www.php.net/manual/en/domnode.clonenode.php
3604 * @param deep bool[optional] <p>
3605 * Indicates whether to copy all descendant nodes. This parameter is
3606 * defaulted to false.
3607 * </p>
3608 * @return DOMNode The cloned node.
3609 */
3610 public function cloneNode ($deep = null) {}
3611
3612 /**
3613 * Normalizes the node
3614 * @link http://www.php.net/manual/en/domnode.normalize.php
3615 * @return void
3616 */
3617 public function normalize () {}
3618
3619 /**
3620 * Checks if feature is supported for specified version
3621 * @link http://www.php.net/manual/en/domnode.issupported.php
3622 * @param feature string <p>
3623 * The feature to test. See the example of
3624 * DOMImplementation::hasFeature for a
3625 * list of features.
3626 * </p>
3627 * @param version string <p>
3628 * The version number of the feature to test.
3629 * </p>
3630 * @return bool Returns true on success, false on failure.
3631 */
3632 public function isSupported ($feature, $version) {}
3633
3634 /**
3635 * Checks if node has attributes
3636 * @link http://www.php.net/manual/en/domnode.hasattributes.php
3637 * @return bool Returns true on success, false on failure.
3638 */
3639 public function hasAttributes () {}
3640
3641 /**
3642 * @param other DOMNode
3643 */
3644 public function compareDocumentPosition (DOMNode $other) {}
3645
3646 /**
3647 * Indicates if two nodes are the same node
3648 * @link http://www.php.net/manual/en/domnode.issamenode.php
3649 * @param node DOMNode <p>
3650 * The compared node.
3651 * </p>
3652 * @return bool Returns true on success, false on failure.
3653 */
3654 public function isSameNode (DOMNode $node) {}
3655
3656 /**
3657 * Gets the namespace prefix of the node based on the namespace URI
3658 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
3659 * @param namespaceURI string <p>
3660 * The namespace URI.
3661 * </p>
3662 * @return string The prefix of the namespace.
3663 */
3664 public function lookupPrefix ($namespaceURI) {}
3665
3666 /**
3667 * Checks if the specified namespaceURI is the default namespace or not
3668 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
3669 * @param namespaceURI string <p>
3670 * The namespace URI to look for.
3671 * </p>
3672 * @return bool Return true if namespaceURI is the default
3673 * namespace, false otherwise.
3674 */
3675 public function isDefaultNamespace ($namespaceURI) {}
3676
3677 /**
3678 * Gets the namespace URI of the node based on the prefix
3679 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
3680 * @param prefix string <p>
3681 * The prefix of the namespace.
3682 * </p>
3683 * @return string The namespace URI of the node.
3684 */
3685 public function lookupNamespaceUri ($prefix) {}
3686
3687 /**
3688 * @param arg DOMNode
3689 */
3690 public function isEqualNode (DOMNode $arg) {}
3691
3692 /**
3693 * @param feature
3694 * @param version
3695 */
3696 public function getFeature ($feature, $version) {}
3697
3698 /**
3699 * @param key
3700 * @param data
3701 * @param handler
3702 */
3703 public function setUserData ($key, $data, $handler) {}
3704
3705 /**
3706 * @param key
3707 */
3708 public function getUserData ($key) {}
3709
3710 /**
3711 * Get an XPath for a node
3712 * @link http://www.php.net/manual/en/domnode.getnodepath.php
3713 * @return string a string containing the XPath, or &null; in case of an error.
3714 */
3715 public function getNodePath () {}
3716
3717 /**
3718 * Get line number for a node
3719 * @link http://www.php.net/manual/en/domnode.getlineno.php
3720 * @return int Always returns the line number where the node was defined in.
3721 */
3722 public function getLineNo () {}
3723
3724 /**
3725 * Canonicalize nodes to a string
3726 * @link http://www.php.net/manual/en/domnode.c14n.php
3727 * @param exclusive bool[optional] <p>
3728 * Enable exclusive parsing of only the nodes matched by the provided
3729 * xpath or namespace prefixes.
3730 * </p>
3731 * @param with_comments bool[optional] <p>
3732 * Retain comments in output.
3733 * </p>
3734 * @param xpath array[optional] <p>
3735 * An array of xpaths to filter the nodes by.
3736 * </p>
3737 * @param ns_prefixes array[optional] <p>
3738 * An array of namespace prefixes to filter the nodes by.
3739 * </p>
3740 * @return string canonicalized nodes as a string&return.falseforfailure;
3741 */
3742 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
3743
3744 /**
3745 * Canonicalize nodes to a file
3746 * @link http://www.php.net/manual/en/domnode.c14nfile.php
3747 * @param uri string <p>
3748 * Path to write the output to.
3749 * </p>
3750 * @param exclusive bool[optional] <p>
3751 * Enable exclusive parsing of only the nodes matched by the provided
3752 * xpath or namespace prefixes.
3753 * </p>
3754 * @param with_comments bool[optional] <p>
3755 * Retain comments in output.
3756 * </p>
3757 * @param xpath array[optional] <p>
3758 * An array of xpaths to filter the nodes by.
3759 * </p>
3760 * @param ns_prefixes array[optional] <p>
3761 * An array of namespace prefixes to filter the nodes by.
3762 * </p>
3763 * @return int Number of bytes written&return.falseforfailure;
3764 */
3765 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
3766
3767 }
3768
3769 class DOMEntity extends DOMNode {
3770
3771 /**
3772 * Adds a new child before a reference node
3773 * @link http://www.php.net/manual/en/domnode.insertbefore.php
3774 * @param newnode DOMNode <p>
3775 * The new node.
3776 * </p>
3777 * @param refnode DOMNode[optional] <p>
3778 * The reference node. If not supplied, newnode is
3779 * appended to the children.
3780 * </p>
3781 * @return DOMNode The inserted node.
3782 */
3783 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
3784
3785 /**
3786 * Replaces a child
3787 * @link http://www.php.net/manual/en/domnode.replacechild.php
3788 * @param newnode DOMNode <p>
3789 * The new node. It must be a member of the target document, i.e.
3790 * created by one of the DOMDocument->createXXX() methods or imported in
3791 * the document by .
3792 * </p>
3793 * @param oldnode DOMNode <p>
3794 * The old node.
3795 * </p>
3796 * @return DOMNode The old node or false if an error occur.
3797 */
3798 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
3799
3800 /**
3801 * Removes child from list of children
3802 * @link http://www.php.net/manual/en/domnode.removechild.php
3803 * @param oldnode DOMNode <p>
3804 * The removed child.
3805 * </p>
3806 * @return DOMNode If the child could be removed the function returns the old child.
3807 */
3808 public function removeChild (DOMNode $oldnode) {}
3809
3810 /**
3811 * Adds new child at the end of the children
3812 * @link http://www.php.net/manual/en/domnode.appendchild.php
3813 * @param newnode DOMNode <p>
3814 * The appended child.
3815 * </p>
3816 * @return DOMNode The node added.
3817 */
3818 public function appendChild (DOMNode $newnode) {}
3819
3820 /**
3821 * Checks if node has children
3822 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
3823 * @return bool Returns true on success, false on failure.
3824 */
3825 public function hasChildNodes () {}
3826
3827 /**
3828 * Clones a node
3829 * @link http://www.php.net/manual/en/domnode.clonenode.php
3830 * @param deep bool[optional] <p>
3831 * Indicates whether to copy all descendant nodes. This parameter is
3832 * defaulted to false.
3833 * </p>
3834 * @return DOMNode The cloned node.
3835 */
3836 public function cloneNode ($deep = null) {}
3837
3838 /**
3839 * Normalizes the node
3840 * @link http://www.php.net/manual/en/domnode.normalize.php
3841 * @return void
3842 */
3843 public function normalize () {}
3844
3845 /**
3846 * Checks if feature is supported for specified version
3847 * @link http://www.php.net/manual/en/domnode.issupported.php
3848 * @param feature string <p>
3849 * The feature to test. See the example of
3850 * DOMImplementation::hasFeature for a
3851 * list of features.
3852 * </p>
3853 * @param version string <p>
3854 * The version number of the feature to test.
3855 * </p>
3856 * @return bool Returns true on success, false on failure.
3857 */
3858 public function isSupported ($feature, $version) {}
3859
3860 /**
3861 * Checks if node has attributes
3862 * @link http://www.php.net/manual/en/domnode.hasattributes.php
3863 * @return bool Returns true on success, false on failure.
3864 */
3865 public function hasAttributes () {}
3866
3867 /**
3868 * @param other DOMNode
3869 */
3870 public function compareDocumentPosition (DOMNode $other) {}
3871
3872 /**
3873 * Indicates if two nodes are the same node
3874 * @link http://www.php.net/manual/en/domnode.issamenode.php
3875 * @param node DOMNode <p>
3876 * The compared node.
3877 * </p>
3878 * @return bool Returns true on success, false on failure.
3879 */
3880 public function isSameNode (DOMNode $node) {}
3881
3882 /**
3883 * Gets the namespace prefix of the node based on the namespace URI
3884 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
3885 * @param namespaceURI string <p>
3886 * The namespace URI.
3887 * </p>
3888 * @return string The prefix of the namespace.
3889 */
3890 public function lookupPrefix ($namespaceURI) {}
3891
3892 /**
3893 * Checks if the specified namespaceURI is the default namespace or not
3894 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
3895 * @param namespaceURI string <p>
3896 * The namespace URI to look for.
3897 * </p>
3898 * @return bool Return true if namespaceURI is the default
3899 * namespace, false otherwise.
3900 */
3901 public function isDefaultNamespace ($namespaceURI) {}
3902
3903 /**
3904 * Gets the namespace URI of the node based on the prefix
3905 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
3906 * @param prefix string <p>
3907 * The prefix of the namespace.
3908 * </p>
3909 * @return string The namespace URI of the node.
3910 */
3911 public function lookupNamespaceUri ($prefix) {}
3912
3913 /**
3914 * @param arg DOMNode
3915 */
3916 public function isEqualNode (DOMNode $arg) {}
3917
3918 /**
3919 * @param feature
3920 * @param version
3921 */
3922 public function getFeature ($feature, $version) {}
3923
3924 /**
3925 * @param key
3926 * @param data
3927 * @param handler
3928 */
3929 public function setUserData ($key, $data, $handler) {}
3930
3931 /**
3932 * @param key
3933 */
3934 public function getUserData ($key) {}
3935
3936 /**
3937 * Get an XPath for a node
3938 * @link http://www.php.net/manual/en/domnode.getnodepath.php
3939 * @return string a string containing the XPath, or &null; in case of an error.
3940 */
3941 public function getNodePath () {}
3942
3943 /**
3944 * Get line number for a node
3945 * @link http://www.php.net/manual/en/domnode.getlineno.php
3946 * @return int Always returns the line number where the node was defined in.
3947 */
3948 public function getLineNo () {}
3949
3950 /**
3951 * Canonicalize nodes to a string
3952 * @link http://www.php.net/manual/en/domnode.c14n.php
3953 * @param exclusive bool[optional] <p>
3954 * Enable exclusive parsing of only the nodes matched by the provided
3955 * xpath or namespace prefixes.
3956 * </p>
3957 * @param with_comments bool[optional] <p>
3958 * Retain comments in output.
3959 * </p>
3960 * @param xpath array[optional] <p>
3961 * An array of xpaths to filter the nodes by.
3962 * </p>
3963 * @param ns_prefixes array[optional] <p>
3964 * An array of namespace prefixes to filter the nodes by.
3965 * </p>
3966 * @return string canonicalized nodes as a string&return.falseforfailure;
3967 */
3968 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
3969
3970 /**
3971 * Canonicalize nodes to a file
3972 * @link http://www.php.net/manual/en/domnode.c14nfile.php
3973 * @param uri string <p>
3974 * Path to write the output to.
3975 * </p>
3976 * @param exclusive bool[optional] <p>
3977 * Enable exclusive parsing of only the nodes matched by the provided
3978 * xpath or namespace prefixes.
3979 * </p>
3980 * @param with_comments bool[optional] <p>
3981 * Retain comments in output.
3982 * </p>
3983 * @param xpath array[optional] <p>
3984 * An array of xpaths to filter the nodes by.
3985 * </p>
3986 * @param ns_prefixes array[optional] <p>
3987 * An array of namespace prefixes to filter the nodes by.
3988 * </p>
3989 * @return int Number of bytes written&return.falseforfailure;
3990 */
3991 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
3992
3993 }
3994
3995 class DOMEntityReference extends DOMNode {
3996
3997 /**
3998 * Creates a new DOMEntityReference object
3999 * @link http://www.php.net/manual/en/domentityreference.construct.php
4000 * @param name
4001 */
4002 public function __construct ($name) {}
4003
4004 /**
4005 * Adds a new child before a reference node
4006 * @link http://www.php.net/manual/en/domnode.insertbefore.php
4007 * @param newnode DOMNode <p>
4008 * The new node.
4009 * </p>
4010 * @param refnode DOMNode[optional] <p>
4011 * The reference node. If not supplied, newnode is
4012 * appended to the children.
4013 * </p>
4014 * @return DOMNode The inserted node.
4015 */
4016 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
4017
4018 /**
4019 * Replaces a child
4020 * @link http://www.php.net/manual/en/domnode.replacechild.php
4021 * @param newnode DOMNode <p>
4022 * The new node. It must be a member of the target document, i.e.
4023 * created by one of the DOMDocument->createXXX() methods or imported in
4024 * the document by .
4025 * </p>
4026 * @param oldnode DOMNode <p>
4027 * The old node.
4028 * </p>
4029 * @return DOMNode The old node or false if an error occur.
4030 */
4031 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
4032
4033 /**
4034 * Removes child from list of children
4035 * @link http://www.php.net/manual/en/domnode.removechild.php
4036 * @param oldnode DOMNode <p>
4037 * The removed child.
4038 * </p>
4039 * @return DOMNode If the child could be removed the function returns the old child.
4040 */
4041 public function removeChild (DOMNode $oldnode) {}
4042
4043 /**
4044 * Adds new child at the end of the children
4045 * @link http://www.php.net/manual/en/domnode.appendchild.php
4046 * @param newnode DOMNode <p>
4047 * The appended child.
4048 * </p>
4049 * @return DOMNode The node added.
4050 */
4051 public function appendChild (DOMNode $newnode) {}
4052
4053 /**
4054 * Checks if node has children
4055 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
4056 * @return bool Returns true on success, false on failure.
4057 */
4058 public function hasChildNodes () {}
4059
4060 /**
4061 * Clones a node
4062 * @link http://www.php.net/manual/en/domnode.clonenode.php
4063 * @param deep bool[optional] <p>
4064 * Indicates whether to copy all descendant nodes. This parameter is
4065 * defaulted to false.
4066 * </p>
4067 * @return DOMNode The cloned node.
4068 */
4069 public function cloneNode ($deep = null) {}
4070
4071 /**
4072 * Normalizes the node
4073 * @link http://www.php.net/manual/en/domnode.normalize.php
4074 * @return void
4075 */
4076 public function normalize () {}
4077
4078 /**
4079 * Checks if feature is supported for specified version
4080 * @link http://www.php.net/manual/en/domnode.issupported.php
4081 * @param feature string <p>
4082 * The feature to test. See the example of
4083 * DOMImplementation::hasFeature for a
4084 * list of features.
4085 * </p>
4086 * @param version string <p>
4087 * The version number of the feature to test.
4088 * </p>
4089 * @return bool Returns true on success, false on failure.
4090 */
4091 public function isSupported ($feature, $version) {}
4092
4093 /**
4094 * Checks if node has attributes
4095 * @link http://www.php.net/manual/en/domnode.hasattributes.php
4096 * @return bool Returns true on success, false on failure.
4097 */
4098 public function hasAttributes () {}
4099
4100 /**
4101 * @param other DOMNode
4102 */
4103 public function compareDocumentPosition (DOMNode $other) {}
4104
4105 /**
4106 * Indicates if two nodes are the same node
4107 * @link http://www.php.net/manual/en/domnode.issamenode.php
4108 * @param node DOMNode <p>
4109 * The compared node.
4110 * </p>
4111 * @return bool Returns true on success, false on failure.
4112 */
4113 public function isSameNode (DOMNode $node) {}
4114
4115 /**
4116 * Gets the namespace prefix of the node based on the namespace URI
4117 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
4118 * @param namespaceURI string <p>
4119 * The namespace URI.
4120 * </p>
4121 * @return string The prefix of the namespace.
4122 */
4123 public function lookupPrefix ($namespaceURI) {}
4124
4125 /**
4126 * Checks if the specified namespaceURI is the default namespace or not
4127 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
4128 * @param namespaceURI string <p>
4129 * The namespace URI to look for.
4130 * </p>
4131 * @return bool Return true if namespaceURI is the default
4132 * namespace, false otherwise.
4133 */
4134 public function isDefaultNamespace ($namespaceURI) {}
4135
4136 /**
4137 * Gets the namespace URI of the node based on the prefix
4138 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
4139 * @param prefix string <p>
4140 * The prefix of the namespace.
4141 * </p>
4142 * @return string The namespace URI of the node.
4143 */
4144 public function lookupNamespaceUri ($prefix) {}
4145
4146 /**
4147 * @param arg DOMNode
4148 */
4149 public function isEqualNode (DOMNode $arg) {}
4150
4151 /**
4152 * @param feature
4153 * @param version
4154 */
4155 public function getFeature ($feature, $version) {}
4156
4157 /**
4158 * @param key
4159 * @param data
4160 * @param handler
4161 */
4162 public function setUserData ($key, $data, $handler) {}
4163
4164 /**
4165 * @param key
4166 */
4167 public function getUserData ($key) {}
4168
4169 /**
4170 * Get an XPath for a node
4171 * @link http://www.php.net/manual/en/domnode.getnodepath.php
4172 * @return string a string containing the XPath, or &null; in case of an error.
4173 */
4174 public function getNodePath () {}
4175
4176 /**
4177 * Get line number for a node
4178 * @link http://www.php.net/manual/en/domnode.getlineno.php
4179 * @return int Always returns the line number where the node was defined in.
4180 */
4181 public function getLineNo () {}
4182
4183 /**
4184 * Canonicalize nodes to a string
4185 * @link http://www.php.net/manual/en/domnode.c14n.php
4186 * @param exclusive bool[optional] <p>
4187 * Enable exclusive parsing of only the nodes matched by the provided
4188 * xpath or namespace prefixes.
4189 * </p>
4190 * @param with_comments bool[optional] <p>
4191 * Retain comments in output.
4192 * </p>
4193 * @param xpath array[optional] <p>
4194 * An array of xpaths to filter the nodes by.
4195 * </p>
4196 * @param ns_prefixes array[optional] <p>
4197 * An array of namespace prefixes to filter the nodes by.
4198 * </p>
4199 * @return string canonicalized nodes as a string&return.falseforfailure;
4200 */
4201 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
4202
4203 /**
4204 * Canonicalize nodes to a file
4205 * @link http://www.php.net/manual/en/domnode.c14nfile.php
4206 * @param uri string <p>
4207 * Path to write the output to.
4208 * </p>
4209 * @param exclusive bool[optional] <p>
4210 * Enable exclusive parsing of only the nodes matched by the provided
4211 * xpath or namespace prefixes.
4212 * </p>
4213 * @param with_comments bool[optional] <p>
4214 * Retain comments in output.
4215 * </p>
4216 * @param xpath array[optional] <p>
4217 * An array of xpaths to filter the nodes by.
4218 * </p>
4219 * @param ns_prefixes array[optional] <p>
4220 * An array of namespace prefixes to filter the nodes by.
4221 * </p>
4222 * @return int Number of bytes written&return.falseforfailure;
4223 */
4224 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
4225
4226 }
4227
4228 class DOMProcessingInstruction extends DOMNode {
4229
4230 /**
4231 * Creates a new <classname>DOMProcessingInstruction</classname> object
4232 * @link http://www.php.net/manual/en/domprocessinginstruction.construct.php
4233 * @param name
4234 * @param value[optional]
4235 */
4236 public function __construct ($name, $value) {}
4237
4238 /**
4239 * Adds a new child before a reference node
4240 * @link http://www.php.net/manual/en/domnode.insertbefore.php
4241 * @param newnode DOMNode <p>
4242 * The new node.
4243 * </p>
4244 * @param refnode DOMNode[optional] <p>
4245 * The reference node. If not supplied, newnode is
4246 * appended to the children.
4247 * </p>
4248 * @return DOMNode The inserted node.
4249 */
4250 public function insertBefore (DOMNode $newnode, DOMNode $refnode = null) {}
4251
4252 /**
4253 * Replaces a child
4254 * @link http://www.php.net/manual/en/domnode.replacechild.php
4255 * @param newnode DOMNode <p>
4256 * The new node. It must be a member of the target document, i.e.
4257 * created by one of the DOMDocument->createXXX() methods or imported in
4258 * the document by .
4259 * </p>
4260 * @param oldnode DOMNode <p>
4261 * The old node.
4262 * </p>
4263 * @return DOMNode The old node or false if an error occur.
4264 */
4265 public function replaceChild (DOMNode $newnode, DOMNode $oldnode) {}
4266
4267 /**
4268 * Removes child from list of children
4269 * @link http://www.php.net/manual/en/domnode.removechild.php
4270 * @param oldnode DOMNode <p>
4271 * The removed child.
4272 * </p>
4273 * @return DOMNode If the child could be removed the function returns the old child.
4274 */
4275 public function removeChild (DOMNode $oldnode) {}
4276
4277 /**
4278 * Adds new child at the end of the children
4279 * @link http://www.php.net/manual/en/domnode.appendchild.php
4280 * @param newnode DOMNode <p>
4281 * The appended child.
4282 * </p>
4283 * @return DOMNode The node added.
4284 */
4285 public function appendChild (DOMNode $newnode) {}
4286
4287 /**
4288 * Checks if node has children
4289 * @link http://www.php.net/manual/en/domnode.haschildnodes.php
4290 * @return bool Returns true on success, false on failure.
4291 */
4292 public function hasChildNodes () {}
4293
4294 /**
4295 * Clones a node
4296 * @link http://www.php.net/manual/en/domnode.clonenode.php
4297 * @param deep bool[optional] <p>
4298 * Indicates whether to copy all descendant nodes. This parameter is
4299 * defaulted to false.
4300 * </p>
4301 * @return DOMNode The cloned node.
4302 */
4303 public function cloneNode ($deep = null) {}
4304
4305 /**
4306 * Normalizes the node
4307 * @link http://www.php.net/manual/en/domnode.normalize.php
4308 * @return void
4309 */
4310 public function normalize () {}
4311
4312 /**
4313 * Checks if feature is supported for specified version
4314 * @link http://www.php.net/manual/en/domnode.issupported.php
4315 * @param feature string <p>
4316 * The feature to test. See the example of
4317 * DOMImplementation::hasFeature for a
4318 * list of features.
4319 * </p>
4320 * @param version string <p>
4321 * The version number of the feature to test.
4322 * </p>
4323 * @return bool Returns true on success, false on failure.
4324 */
4325 public function isSupported ($feature, $version) {}
4326
4327 /**
4328 * Checks if node has attributes
4329 * @link http://www.php.net/manual/en/domnode.hasattributes.php
4330 * @return bool Returns true on success, false on failure.
4331 */
4332 public function hasAttributes () {}
4333
4334 /**
4335 * @param other DOMNode
4336 */
4337 public function compareDocumentPosition (DOMNode $other) {}
4338
4339 /**
4340 * Indicates if two nodes are the same node
4341 * @link http://www.php.net/manual/en/domnode.issamenode.php
4342 * @param node DOMNode <p>
4343 * The compared node.
4344 * </p>
4345 * @return bool Returns true on success, false on failure.
4346 */
4347 public function isSameNode (DOMNode $node) {}
4348
4349 /**
4350 * Gets the namespace prefix of the node based on the namespace URI
4351 * @link http://www.php.net/manual/en/domnode.lookupprefix.php
4352 * @param namespaceURI string <p>
4353 * The namespace URI.
4354 * </p>
4355 * @return string The prefix of the namespace.
4356 */
4357 public function lookupPrefix ($namespaceURI) {}
4358
4359 /**
4360 * Checks if the specified namespaceURI is the default namespace or not
4361 * @link http://www.php.net/manual/en/domnode.isdefaultnamespace.php
4362 * @param namespaceURI string <p>
4363 * The namespace URI to look for.
4364 * </p>
4365 * @return bool Return true if namespaceURI is the default
4366 * namespace, false otherwise.
4367 */
4368 public function isDefaultNamespace ($namespaceURI) {}
4369
4370 /**
4371 * Gets the namespace URI of the node based on the prefix
4372 * @link http://www.php.net/manual/en/domnode.lookupnamespaceuri.php
4373 * @param prefix string <p>
4374 * The prefix of the namespace.
4375 * </p>
4376 * @return string The namespace URI of the node.
4377 */
4378 public function lookupNamespaceUri ($prefix) {}
4379
4380 /**
4381 * @param arg DOMNode
4382 */
4383 public function isEqualNode (DOMNode $arg) {}
4384
4385 /**
4386 * @param feature
4387 * @param version
4388 */
4389 public function getFeature ($feature, $version) {}
4390
4391 /**
4392 * @param key
4393 * @param data
4394 * @param handler
4395 */
4396 public function setUserData ($key, $data, $handler) {}
4397
4398 /**
4399 * @param key
4400 */
4401 public function getUserData ($key) {}
4402
4403 /**
4404 * Get an XPath for a node
4405 * @link http://www.php.net/manual/en/domnode.getnodepath.php
4406 * @return string a string containing the XPath, or &null; in case of an error.
4407 */
4408 public function getNodePath () {}
4409
4410 /**
4411 * Get line number for a node
4412 * @link http://www.php.net/manual/en/domnode.getlineno.php
4413 * @return int Always returns the line number where the node was defined in.
4414 */
4415 public function getLineNo () {}
4416
4417 /**
4418 * Canonicalize nodes to a string
4419 * @link http://www.php.net/manual/en/domnode.c14n.php
4420 * @param exclusive bool[optional] <p>
4421 * Enable exclusive parsing of only the nodes matched by the provided
4422 * xpath or namespace prefixes.
4423 * </p>
4424 * @param with_comments bool[optional] <p>
4425 * Retain comments in output.
4426 * </p>
4427 * @param xpath array[optional] <p>
4428 * An array of xpaths to filter the nodes by.
4429 * </p>
4430 * @param ns_prefixes array[optional] <p>
4431 * An array of namespace prefixes to filter the nodes by.
4432 * </p>
4433 * @return string canonicalized nodes as a string&return.falseforfailure;
4434 */
4435 public function C14N ($exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
4436
4437 /**
4438 * Canonicalize nodes to a file
4439 * @link http://www.php.net/manual/en/domnode.c14nfile.php
4440 * @param uri string <p>
4441 * Path to write the output to.
4442 * </p>
4443 * @param exclusive bool[optional] <p>
4444 * Enable exclusive parsing of only the nodes matched by the provided
4445 * xpath or namespace prefixes.
4446 * </p>
4447 * @param with_comments bool[optional] <p>
4448 * Retain comments in output.
4449 * </p>
4450 * @param xpath array[optional] <p>
4451 * An array of xpaths to filter the nodes by.
4452 * </p>
4453 * @param ns_prefixes array[optional] <p>
4454 * An array of namespace prefixes to filter the nodes by.
4455 * </p>
4456 * @return int Number of bytes written&return.falseforfailure;
4457 */
4458 public function C14NFile ($uri, $exclusive = null, $with_comments = null, array $xpath = null, array $ns_prefixes = null) {}
4459
4460 }
4461
4462 class DOMStringExtend {
4463
4464 /**
4465 * @param offset32
4466 */
4467 public function findOffset16 ($offset32) {}
4468
4469 /**
4470 * @param offset16
4471 */
4472 public function findOffset32 ($offset16) {}
4473
4474 }
4475
4476 class DOMXPath {
4477
4478 /**
4479 * Creates a new <classname>DOMXPath</classname> object
4480 * @link http://www.php.net/manual/en/domxpath.construct.php
4481 * @param doc DOMDocument
4482 */
4483 public function __construct (DOMDocument $doc) {}
4484
4485 /**
4486 * Registers the namespace with the <classname>DOMXPath</classname> object
4487 * @link http://www.php.net/manual/en/domxpath.registernamespace.php
4488 * @param prefix string <p>
4489 * The prefix.
4490 * </p>
4491 * @param namespaceURI string <p>
4492 * The URI of the namespace.
4493 * </p>
4494 * @return bool Returns true on success, false on failure.
4495 */
4496 public function registerNamespace ($prefix, $namespaceURI) {}
4497
4498 /**
4499 * Evaluates the given XPath expression
4500 * @link http://www.php.net/manual/en/domxpath.query.php
4501 * @param expression string <p>
4502 * The XPath expression to execute.
4503 * </p>
4504 * @param contextnode DOMNode[optional] <p>
4505 * The optional contextnode can be specified for
4506 * doing relative XPath queries. By default, the queries are relative to
4507 * the root element.
4508 * </p>
4509 * @param registerNodeNS bool[optional] <p>
4510 * The optional registerNodeNS can be specified to
4511 * disable automatic registration of the context node.
4512 * </p>
4513 * @return DOMNodeList a DOMNodeList containing all nodes matching
4514 * the given XPath expression. Any expression which
4515 * does not return nodes will return an empty
4516 * DOMNodeList.
4517 * </p>
4518 * <p>
4519 * If the expression is malformed or the
4520 * contextnode is invalid,
4521 * DOMXPath::query returns false.
4522 */
4523 public function query ($expression, DOMNode $contextnode = null, $registerNodeNS = null) {}
4524
4525 /**
4526 * Evaluates the given XPath expression and returns a typed result if possible
4527 * @link http://www.php.net/manual/en/domxpath.evaluate.php
4528 * @param expression string <p>
4529 * The XPath expression to execute.
4530 * </p>
4531 * @param contextnode DOMNode[optional] <p>
4532 * The optional contextnode can be specified for
4533 * doing relative XPath queries. By default, the queries are relative to
4534 * the root element.
4535 * </p>
4536 * @param registerNodeNS bool[optional] <p>
4537 * The optional registerNodeNS can be specified to
4538 * disable automatic registration of the context node.
4539 * </p>
4540 * @return mixed a typed result if possible or a DOMNodeList
4541 * containing all nodes matching the given XPath expression.
4542 * </p>
4543 * <p>
4544 * If the expression is malformed or the
4545 * contextnode is invalid,
4546 * DOMXPath::evaluate returns false.
4547 */
4548 public function evaluate ($expression, DOMNode $contextnode = null, $registerNodeNS = null) {}
4549
4550 /**
4551 * Register PHP functions as XPath functions
4552 * @link http://www.php.net/manual/en/domxpath.registerphpfunctions.php
4553 * @param restrict mixed[optional] <p>
4554 * Use this parameter to only allow certain functions to be called from XPath.
4555 * </p>
4556 * <p>
4557 * This parameter can be either a string (a function name) or
4558 * an array of function names.
4559 * </p>
4560 * @return void
4561 */
4562 public function registerPhpFunctions ($restrict = null) {}
4563
4564 }
4565
4566 /**
4567 * Gets a <classname>DOMElement</classname> object from a
4568 <classname>SimpleXMLElement</classname> object
4569 * @link http://www.php.net/manual/en/function.dom-import-simplexml.php
4570 * @param node SimpleXMLElement <p>
4571 * The SimpleXMLElement node.
4572 * </p>
4573 * @return DOMElement The DOMElement node added or false if any errors occur.
4574 */
4575 function dom_import_simplexml (SimpleXMLElement $node) {}
4576
4577
4578 /**
4579 * Node is a DOMElement
4580 * @link http://www.php.net/manual/en/dom.constants.php
4581 */
4582 define ('XML_ELEMENT_NODE', 1);
4583
4584 /**
4585 * Node is a DOMAttr
4586 * @link http://www.php.net/manual/en/dom.constants.php
4587 */
4588 define ('XML_ATTRIBUTE_NODE', 2);
4589
4590 /**
4591 * Node is a DOMText
4592 * @link http://www.php.net/manual/en/dom.constants.php
4593 */
4594 define ('XML_TEXT_NODE', 3);
4595
4596 /**
4597 * Node is a DOMCharacterData
4598 * @link http://www.php.net/manual/en/dom.constants.php
4599 */
4600 define ('XML_CDATA_SECTION_NODE', 4);
4601
4602 /**
4603 * Node is a DOMEntityReference
4604 * @link http://www.php.net/manual/en/dom.constants.php
4605 */
4606 define ('XML_ENTITY_REF_NODE', 5);
4607
4608 /**
4609 * Node is a DOMEntity
4610 * @link http://www.php.net/manual/en/dom.constants.php
4611 */
4612 define ('XML_ENTITY_NODE', 6);
4613
4614 /**
4615 * Node is a DOMProcessingInstruction
4616 * @link http://www.php.net/manual/en/dom.constants.php
4617 */
4618 define ('XML_PI_NODE', 7);
4619
4620 /**
4621 * Node is a DOMComment
4622 * @link http://www.php.net/manual/en/dom.constants.php
4623 */
4624 define ('XML_COMMENT_NODE', 8);
4625
4626 /**
4627 * Node is a DOMDocument
4628 * @link http://www.php.net/manual/en/dom.constants.php
4629 */
4630 define ('XML_DOCUMENT_NODE', 9);
4631
4632 /**
4633 * Node is a DOMDocumentType
4634 * @link http://www.php.net/manual/en/dom.constants.php
4635 */
4636 define ('XML_DOCUMENT_TYPE_NODE', 10);
4637
4638 /**
4639 * Node is a DOMDocumentFragment
4640 * @link http://www.php.net/manual/en/dom.constants.php
4641 */
4642 define ('XML_DOCUMENT_FRAG_NODE', 11);
4643
4644 /**
4645 * Node is a DOMNotation
4646 * @link http://www.php.net/manual/en/dom.constants.php
4647 */
4648 define ('XML_NOTATION_NODE', 12);
4649 define ('XML_HTML_DOCUMENT_NODE', 13);
4650 define ('XML_DTD_NODE', 14);
4651 define ('XML_ELEMENT_DECL_NODE', 15);
4652 define ('XML_ATTRIBUTE_DECL_NODE', 16);
4653 define ('XML_ENTITY_DECL_NODE', 17);
4654 define ('XML_NAMESPACE_DECL_NODE', 18);
4655 define ('XML_LOCAL_NAMESPACE', 18);
4656 define ('XML_ATTRIBUTE_CDATA', 1);
4657 define ('XML_ATTRIBUTE_ID', 2);
4658 define ('XML_ATTRIBUTE_IDREF', 3);
4659 define ('XML_ATTRIBUTE_IDREFS', 4);
4660 define ('XML_ATTRIBUTE_ENTITY', 6);
4661 define ('XML_ATTRIBUTE_NMTOKEN', 7);
4662 define ('XML_ATTRIBUTE_NMTOKENS', 8);
4663 define ('XML_ATTRIBUTE_ENUMERATION', 9);
4664 define ('XML_ATTRIBUTE_NOTATION', 10);
4665
4666 /**
4667 * Error code not part of the DOM specification. Meant for PHP errors.
4668 * @link http://www.php.net/manual/en/dom.constants.php
4669 */
4670 define ('DOM_PHP_ERR', 0);
4671
4672 /**
4673 * If index or size is negative, or greater than the allowed value.
4674 * @link http://www.php.net/manual/en/dom.constants.php
4675 */
4676 define ('DOM_INDEX_SIZE_ERR', 1);
4677
4678 /**
4679 * If the specified range of text does not fit into a
4680 * DOMString.
4681 * @link http://www.php.net/manual/en/dom.constants.php
4682 */
4683 define ('DOMSTRING_SIZE_ERR', 2);
4684
4685 /**
4686 * If any node is inserted somewhere it doesn't belong
4687 * @link http://www.php.net/manual/en/dom.constants.php
4688 */
4689 define ('DOM_HIERARCHY_REQUEST_ERR', 3);
4690
4691 /**
4692 * If a node is used in a different document than the one that created it.
4693 * @link http://www.php.net/manual/en/dom.constants.php
4694 */
4695 define ('DOM_WRONG_DOCUMENT_ERR', 4);
4696
4697 /**
4698 * If an invalid or illegal character is specified, such as in a name.
4699 * @link http://www.php.net/manual/en/dom.constants.php
4700 */
4701 define ('DOM_INVALID_CHARACTER_ERR', 5);
4702
4703 /**
4704 * If data is specified for a node which does not support data.
4705 * @link http://www.php.net/manual/en/dom.constants.php
4706 */
4707 define ('DOM_NO_DATA_ALLOWED_ERR', 6);
4708
4709 /**
4710 * If an attempt is made to modify an object where modifications are not allowed.
4711 * @link http://www.php.net/manual/en/dom.constants.php
4712 */
4713 define ('DOM_NO_MODIFICATION_ALLOWED_ERR', 7);
4714
4715 /**
4716 * If an attempt is made to reference a node in a context where it does not exist.
4717 * @link http://www.php.net/manual/en/dom.constants.php
4718 */
4719 define ('DOM_NOT_FOUND_ERR', 8);
4720
4721 /**
4722 * If the implementation does not support the requested type of object or operation.
4723 * @link http://www.php.net/manual/en/dom.constants.php
4724 */
4725 define ('DOM_NOT_SUPPORTED_ERR', 9);
4726
4727 /**
4728 * If an attempt is made to add an attribute that is already in use elsewhere.
4729 * @link http://www.php.net/manual/en/dom.constants.php
4730 */
4731 define ('DOM_INUSE_ATTRIBUTE_ERR', 10);
4732
4733 /**
4734 * If an attempt is made to use an object that is not, or is no longer, usable.
4735 * @link http://www.php.net/manual/en/dom.constants.php
4736 */
4737 define ('DOM_INVALID_STATE_ERR', 11);
4738
4739 /**
4740 * If an invalid or illegal string is specified.
4741 * @link http://www.php.net/manual/en/dom.constants.php
4742 */
4743 define ('DOM_SYNTAX_ERR', 12);
4744
4745 /**
4746 * If an attempt is made to modify the type of the underlying object.
4747 * @link http://www.php.net/manual/en/dom.constants.php
4748 */
4749 define ('DOM_INVALID_MODIFICATION_ERR', 13);
4750
4751 /**
4752 * If an attempt is made to create or change an object in a way which is
4753 * incorrect with regard to namespaces.
4754 * @link http://www.php.net/manual/en/dom.constants.php
4755 */
4756 define ('DOM_NAMESPACE_ERR', 14);
4757
4758 /**
4759 * If a parameter or an operation is not supported by the underlying object.
4760 * @link http://www.php.net/manual/en/dom.constants.php
4761 */
4762 define ('DOM_INVALID_ACCESS_ERR', 15);
4763
4764 /**
4765 * If a call to a method such as insertBefore or removeChild would make the Node
4766 * invalid with respect to "partial validity", this exception would be raised and
4767 * the operation would not be done.
4768 * @link http://www.php.net/manual/en/dom.constants.php
4769 */
4770 define ('DOM_VALIDATION_ERR', 16);
4771
4772 // End of dom v.20031129
4773 ?>