Manual:PPNode.php

From Linux Web Expert

Revision as of 09:56, 29 January 2024 by imported>Cavila (implementers)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

  • getChildren()
  • getFirstChild()
  • getNextSibling()
  • getChildrenOfType()
  • getLength();
  • item()
  • getName()
  • splitArg()
  • splitExt()
  • splitHeading()

Implemented by