MediaWiki
master
PPNode.php
Go to the documentation of this file.
1
<?php
22
namespace
MediaWiki\Parser
;
23
37
interface
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
117
class_alias( PPNode::class,
'PPNode'
);
MediaWiki\Parser\PPNode
There are three types of nodes:
Definition
PPNode.php:37
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:27
includes
parser
PPNode.php
Generated on Sat Dec 21 2024 11:25:05 for MediaWiki by
1.10.0