Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API

PHP DOM Builder is unveiled in second revision

In 2014 year PHP DOM Builder library was unveiled at the first time within the framework of Baigudin Software project. Two years have been left after that moment and today we are glad to offer the second generation that is PHP DOM Builder Revision 2.

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