SelectorMatcher

A class for matching nodes against selector tokens. Class SelectorMatcher
uses SDom\SelectorMatcher\AttributeNodeTrait, SDom\SelectorMatcher\ClassNodeTrait, SDom\SelectorMatcher\CombinedSelectorNodeTrait, SDom\SelectorMatcher\ElementNodeTrait, SDom\SelectorMatcher\HashNodeTrait
Methods Summary
public static
# containsWord( string $word , string $sentence )
Check if the supplied word is found in the supplied sentence. E.g. the sentence begins with the word followed by whitespace, ends with the word preceded with whitespace, contains the word surrounded by whitespace or is equal to the word. The word itself may not contain whitespace.
public
# match( Symfony\Component\CssSelector\Node\NodeInterface $token , SDom\Node\Element $node , SDom\Node\Element $effectiveRoot = NULL )
Match the supplied CSS token against the supplied Element node and return TRUE if it is matched. The $effectiveRoot specifies an Element node part of the hierarchy that is to be considered as root of the tree. Immediate child nodes will be treated as if they don't have a parent.
Methods used from SDom\SelectorMatcher\AttributeNodeTrait trait
matchAttributeNode() match()
Methods used from SDom\SelectorMatcher\ClassNodeTrait trait
matchClassNode() match()
Methods used from SDom\SelectorMatcher\CombinedSelectorNodeTrait trait
matchDescendantCombinedSelectorNode() matchChildCombinedSelectorNode() matchAdjacentCombinedSelectorNode() matchGeneralSiblingCombinedSelectorNode() matchCombinedSelectorNode() match()
Methods used from SDom\SelectorMatcher\ElementNodeTrait trait
matchElementNode() match()
Methods used from SDom\SelectorMatcher\HashNodeTrait trait
matchHashNode() match()
Properties used from SDom\SelectorMatcher\AttributeNodeTrait
Properties used from SDom\SelectorMatcher\ClassNodeTrait
Properties used from SDom\SelectorMatcher\CombinedSelectorNodeTrait
Properties used from SDom\SelectorMatcher\ElementNodeTrait
Properties used from SDom\SelectorMatcher\HashNodeTrait