Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API 2.0

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\Tester»

Elements properties tester access declaration.

  • interface Api\Tester

All superinterfaces:

Object

public bool isElementsAttr(string $name, string $value=NULL);

Tests if each element has a given attribute name and its value.

The method returns true if each element has given attribute name and its value equals the given value. If the value argument is defaulted, the method returns true if each element has only given attribute name.

Parameters:
string $name — attribute name.
string $value — attribute value.

Returns:
bool — true if each element matches given arguments.

public bool isElementsClassName(string $name);

Tests if each element has a given class name.

Parameters:
string $name — class name.

Returns:
bool — true if each element has given class name.

public bool isElementsId(string $id);

Tests if each element has a given ID value.

Parameters:
string $id — ID value.

Returns:
bool — true if each element has given ID value.

public bool isElementsTagName(string $name);

Tests if each element has a given tag name.

Parameters:
string $name — tag name.

Returns:
bool — true if each element has given tag name.

Back to class list