MediaWiki master
PPNode.php
Go to the documentation of this file.
1<?php
22namespace MediaWiki\Parser;
23
37interface PPNode {
43 public function getChildren();
44
50 public function getFirstChild();
51
56 public function getNextSibling();
57
64 public function getChildrenOfType( $type );
65
69 public function getLength();
70
76 public function item( $i );
77
91 public function getName();
92
100 public function splitArg();
101
107 public function splitExt();
108
113 public function splitHeading();
114}
115
117class_alias( PPNode::class, 'PPNode' );
There are three types of nodes:
Definition PPNode.php:37
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.