Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API

We have participated in OS DAY 2017 conference

The Baigudin Software Company has participated in OS DAY – a fourth scientific-practical conference, which aims to determine a mission of Russia in developing sphere of operating systems.

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