MediaWiki  master
PPNode.php
Go to the documentation of this file.
1 <?php
35 interface 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 }
PPNode\item
item( $i)
Returns an item of an array-type node.
PPNode\splitArg
splitArg()
Split a "<part>" node into an associative array containing: name PPNode name index String index value...
PPNode\splitExt
splitExt()
Split an "<ext>" node into an associative array containing name, attr, inner and close All values in ...
PPNode\getFirstChild
getFirstChild()
Get the first child of a tree node.
PPNode\getChildren
getChildren()
Get an array-type node containing the children of this node.
PPNode\getLength
getLength()
Returns the length of the array, or false if this is not an array-type node.
PPNode
There are three types of nodes:
Definition: PPNode.php:35
PPNode\getChildrenOfType
getChildrenOfType( $type)
Get all children of this tree node which have a given name.
PPNode\getName
getName()
Get the name of this node.
PPNode\getNextSibling
getNextSibling()
Get the next sibling of any node.
PPNode\splitHeading
splitHeading()
Split an "<h>" node.
$type
$type
Definition: testCompression.php:52