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