41 throw new MWException( __METHOD__ .
': invalid name in attribute descriptor' );
50 return "<@{$this->name}>" . htmlspecialchars( $this->value ) .
"</@{$this->name}>";
77 public function item( $i ) {
82 throw new MWException( __METHOD__ .
': not supported' );
86 throw new MWException( __METHOD__ .
': not supported' );
90 throw new MWException( __METHOD__ .
': not supported' );
getChildren()
Get an array-type node containing the children of this node.
splitExt()
Split an "<ext>" node into an associative array containing name, attr, inner and close All values in ...
splitArg()
Split a "<part>" node into an associative array containing: name PPNode name index String index value...
__construct(array $store, $index)
Construct an object using the data from $store[$index].
item( $i)
Returns an item of an array-type node.
getChildrenOfType( $name)
Get all children of this tree node which have a given name.
splitHeading()
Split an "<h>" node.
getName()
Get the name of this node.
getLength()
Returns the length of the array, or false if this is not an array-type node.
getFirstChild()
Get the first child of a tree node.
getNextSibling()
Get the next sibling of any node.
static factory(array $store, $index)
Construct an appropriate PPNode_Hash_* object with a class that depends on what is at the relevant st...
const CHILDREN
The offset of the child list within descriptors, used in some places for readability.
const NAME
The offset of the name within descriptors, used in some places for readability.
There are three types of nodes: