MediaWiki master
PPNode.php
Go to the documentation of this file.
1<?php
8namespace MediaWiki\Parser;
9
23interface PPNode {
29 public function getChildren();
30
36 public function getFirstChild();
37
42 public function getNextSibling();
43
50 public function getChildrenOfType( $type );
51
55 public function getLength();
56
62 public function item( $i );
63
77 public function getName();
78
86 public function splitArg();
87
93 public function splitExt();
94
99 public function splitHeading();
100}
101
103class_alias( PPNode::class, 'PPNode' );
There are three types of nodes:
Definition PPNode.php:23
item( $i)
Returns an item of an array-type node.
getNextSibling()
Get the next sibling of any node.
splitArg()
Split a "<part>" node into an associative array containing: name PPNode name index String index value...
getFirstChild()
Get the first child of a tree node.
getName()
Get the name of this node.
splitExt()
Split an "<ext>" node into an associative array containing name, attr, inner and close All values in ...
getChildren()
Get an array-type node containing the children of this node.
getChildrenOfType( $type)
Get all children of this tree node which have a given name.
splitHeading()
Split an "<h>" node.
getLength()
Returns the length of the array, or false if this is not an array-type node.