IBlock
interface IBlock implements IPart, ISearchContext (View source)
Interface, that every BEM block must implement.
Methods
NodeElement|null
find(string $selector, string|array $locator)
Finds first element with specified selector.
from ISearchContext
NodeElement[]
findAll(string $selector, string|array $locator)
Finds all elements with specified selector.
from ISearchContext
mixed
waitFor(integer $timeout, callable $callback)
Waits for an element(-s) to appear and returns it.
from ISearchContext
NodeElement[]
getNodes()
Returns block nodes.
NodeElement[]|null
getElement(string $element_name, string $modificator_name = null, string $modificator_value = null)
Returns first block element.
NodeElement[]
getElements(string $element_name, string $modificator_name = null, string $modificator_value = null)
Returns all block elements.
Details
in ISearchContext at line 32
NodeElement|null
find(string $selector, string|array $locator)
Finds first element with specified selector.
in ISearchContext at line 42
NodeElement[]
findAll(string $selector, string|array $locator)
Finds all elements with specified selector.
in ISearchContext at line 54
mixed
waitFor(integer $timeout, callable $callback)
Waits for an element(-s) to appear and returns it.
at line 28
NodeElement[]
getNodes()
Returns block nodes.
at line 39
NodeElement[]|null
getElement(string $element_name, string $modificator_name = null, string $modificator_value = null)
Returns first block element.
at line 50
NodeElement[]
getElements(string $element_name, string $modificator_name = null, string $modificator_value = null)
Returns all block elements.