10use InvalidArgumentException;
35 if ( !is_scalar( $store[$index] ) ) {
36 throw new InvalidArgumentException( __CLASS__ .
' given object instead of string' );
38 $this->value = $store[$index];
39 $this->store = $store;
40 $this->index = $index;
44 return htmlspecialchars( $this->value, ENT_COMPAT );
73 public function item( $i ) {
85 throw new LogicException( __METHOD__ .
': not supported' );
91 throw new LogicException( __METHOD__ .
': not supported' );
97 throw new LogicException( __METHOD__ .
': not supported' );
102class_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.PPNode|false
getChildrenOfType( $name)
Get all children of this tree node which have a given name.Returns an array-type node,...
__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.array
getNextSibling()
Get the next sibling of any node.False if there isn't one false|PPNode
getName()
Get the name of this node.The following names are defined here:h A heading node. template A double-br...
getChildren()
Get an array-type node containing the children of this node.Returns false if this is not a tree node....
getFirstChild()
Get the first child of a tree node.False if there isn't one.false|PPNode
getLength()
Returns the length of the array, or false if this is not an array-type node.