Manual:PPNode.php
MediaWiki file: PPNode.php | |
---|---|
Location: | includes/parser/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | PPNode |
The PPNode interface provides access to the structure of tree nodes and to the contents of array nodes. Tree nodes have a name and contain other nodes as children. Array nodes also contain other nodes but are not considered part of a tree.
The PPNode interface does not provide access to the internal structure of leaf nodes, which contain the actual data. Access to leaf data is provided instead via two means:
PPFrame::expand()
, which provides expanded text.- The
PPNode::split*()
functions, which provide metadata about certain types of tree node.
Public methods
edit- getChildren()
- getFirstChild()
- getNextSibling()
- getChildrenOfType()
- getLength();
- item()
- getName()
- splitArg()
- splitExt()
- splitHeading()