Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API

Global edition of the project

Baigudin Software project has been unveiled in English global edition and it always accessed by www.baigudin.software/en/.

Interface «DomBuilder\Api\Search»

Elements search by query access declaration.

  • interface Api\Search

All superinterfaces:

Object

public Element filter(string $query);

Filters elements by the query.

The method keeps matched elements by the query. Note: Requested child tags from query string are not processing.

Parameters:
string $query — query string.

Returns:
Element — filtered result.

public Element find(string $query);

Searches child elements by the query.

Parameters:
string $query — query string.

Returns:
Element — searched result.

public Element not(string|Element $query);

Removes elements for matched elements by the query.

The method removes elements by given query. Note: Requested child tags from query string are not processing.

Parameters:
string|Element $query — query string, Element object.

Returns:
Element — parsed result.

public Element parents(string $query);

Searches parent elements by the query.

Parameters:
string $query — query string.

Returns:
Element — searched result.

Back to class list