Documentation

Structural extends Stream

Interface \Hoa\Stream\IStream\Structural.

Interface for structural input/output.

Tags
copyright

Copyright © 2007-2017 Hoa community

license

New BSD License

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
resource

querySelector()

Execute a query selector and return the first result.

public querySelector(string $query) : Structural
Parameters
$query : string

Query.

Return values
Structural

querySelectorAll()

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
Structural

selectAnyElements()

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>

selectSiblingElements()

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.

Return values
array<string|int, mixed>

        
On this page

Search results