Structural
extends
Stream
in
Interface \Hoa\Stream\IStream\Structural.
Interface for structural input/output.
Tags
Table of Contents
Methods
- getStream() : resource
- Get the current stream.
- querySelector() : Structural
- Execute a query selector and return the first result.
- querySelectorAll() : array<string|int, mixed>
- Execute a query selector and return one or many results.
- selectAdjacentSiblingElement() : Structural
- Select an F element immediately preceded by an E element: E + F.
- selectAnyElements() : array<string|int, mixed>
- Select any elements: *.
- selectChildElements() : array<string|int, mixed>
- Select F elements children of an E element: E > F.
- selectDescendantElements() : array<string|int, mixed>
- Select F elements descendant of an E element: E F.
- selectElements() : array<string|int, mixed>
- Select elements of type E: E.
- selectRoot() : Structural
- Select root of the document: :root.
- selectSiblingElements() : array<string|int, mixed>
- Select F elements preceded by an E element: E ~ F.
Methods
getStream()
Get the current stream.
public
getStream() : resource
Return values
resourcequerySelector()
Execute a query selector and return the first result.
public
querySelector(string $query) : Structural
Parameters
- $query : string
-
Query.
Return values
StructuralquerySelectorAll()
Execute a query selector and return one or many results.
public
querySelectorAll(string $query) : array<string|int, mixed>
Parameters
- $query : string
-
Query.
Return values
array<string|int, mixed>selectAdjacentSiblingElement()
Select an F element immediately preceded by an E element: E + F.
public
selectAdjacentSiblingElement(string $F) : Structural
Parameters
- $F : string
-
Element F.
Return values
StructuralselectAnyElements()
Select any elements: *.
public
selectAnyElements() : array<string|int, mixed>
Return values
array<string|int, mixed>selectChildElements()
Select F elements children of an E element: E > F.
public
selectChildElements([string $F = null ]) : array<string|int, mixed>
Parameters
- $F : string = null
-
Element F.
Return values
array<string|int, mixed>selectDescendantElements()
Select F elements descendant of an E element: E F.
public
selectDescendantElements([string $F = null ]) : array<string|int, mixed>
Parameters
- $F : string = null
-
Element F.
Return values
array<string|int, mixed>selectElements()
Select elements of type E: E.
public
selectElements([string $E = null ]) : array<string|int, mixed>
Parameters
- $E : string = null
-
Element E.
Return values
array<string|int, mixed>selectRoot()
Select root of the document: :root.
public
selectRoot() : Structural
Return values
StructuralselectSiblingElements()
Select F elements preceded by an E element: E ~ F.
public
selectSiblingElements([string $F = null ]) : array<string|int, mixed>
Parameters
- $F : string = null
-
Element F.