24use InvalidArgumentException;
49 if ( !is_scalar( $store[$index] ) ) {
50 throw new InvalidArgumentException( __CLASS__ .
' given object instead of string' );
52 $this->value = $store[$index];
53 $this->store = $store;
54 $this->index = $index;
58 return htmlspecialchars( $this->value, ENT_COMPAT );
81 public function item( $i ) {
91 throw new LogicException( __METHOD__ .
': not supported' );
96 throw new LogicException( __METHOD__ .
': not supported' );
101 throw new LogicException( __METHOD__ .
': not supported' );
106class_alias( PPNode_Hash_Text::class,
'PPNode_Hash_Text' );
splitArg()
Split a "<part>" node into an associative array containing: name PPNode name index String index value...
item( $i)
Returns an item of an array-type node.
getChildrenOfType( $name)
Get all children of this tree node which have a given name.
__construct(array $store, $index)
Construct an object using the data from $store[$index].
splitExt()
Split an "<ext>" node into an associative array containing name, attr, inner and close All values in ...
splitHeading()
Split an "<h>" node.
getNextSibling()
Get the next sibling of any node.
getName()
Get the name of this node.
getChildren()
Get an array-type node containing the children of this node.
getFirstChild()
Get the first child of a tree node.
getLength()
Returns the length of the array, or false if this is not an array-type node.