MediaWiki
master
PPNode.php
Go to the documentation of this file.
1
<?php
8
namespace
MediaWiki\Parser
;
9
23
interface
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
103
class_alias( PPNode::class,
'PPNode'
);
MediaWiki\Parser\PPNode
There are three types of nodes:
Definition
PPNode.php:23
MediaWiki\Parser\PPNode\item
item( $i)
Returns an item of an array-type node.
MediaWiki\Parser\PPNode\getNextSibling
getNextSibling()
Get the next sibling of any node.
MediaWiki\Parser\PPNode\splitArg
splitArg()
Split a "<part>" node into an associative array containing: name PPNode name index String index value...
MediaWiki\Parser\PPNode\getFirstChild
getFirstChild()
Get the first child of a tree node.
MediaWiki\Parser\PPNode\getName
getName()
Get the name of this node.
MediaWiki\Parser\PPNode\splitExt
splitExt()
Split an "<ext>" node into an associative array containing name, attr, inner and close All values in ...
MediaWiki\Parser\PPNode\getChildren
getChildren()
Get an array-type node containing the children of this node.
MediaWiki\Parser\PPNode\getChildrenOfType
getChildrenOfType( $type)
Get all children of this tree node which have a given name.
MediaWiki\Parser\PPNode\splitHeading
splitHeading()
Split an "<h>" node.
MediaWiki\Parser\PPNode\getLength
getLength()
Returns the length of the array, or false if this is not an array-type node.
MediaWiki\Parser
Definition
BlockLevelPass.php:13
includes
Parser
PPNode.php
Generated on Wed Jan 21 2026 07:24:25 for MediaWiki by
1.10.0