MediaWiki master
PPNode.php
Go to the documentation of this file.
1<?php
35interface PPNode {
41 public function getChildren();
42
48 public function getFirstChild();
49
54 public function getNextSibling();
55
62 public function getChildrenOfType( $type );
63
67 public function getLength();
68
74 public function item( $i );
75
89 public function getName();
90
98 public function splitArg();
99
105 public function splitExt();
106
111 public function splitHeading();
112}
There are three types of nodes:
Definition PPNode.php:35
item( $i)
Returns an item of an array-type node.
getLength()
Returns the length of the array, or false if this is not an array-type node.
splitArg()
Split a "<part>" node into an associative array containing: name PPNode name index String index value...
splitExt()
Split an "<ext>" node into an associative array containing name, attr, inner and close All values in ...
getFirstChild()
Get the first child of a tree node.
getName()
Get the name of this node.
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.
getNextSibling()
Get the next sibling of any node.