Copied!
Cloneable Instantiable
Methods
public seek ( array $nodes , PHPHtmlParser\DTO\Selector\RuleDTO $rule , array $options ) : array
 

Attempts to find all children that match the rule
given.

  • var InnerNode []
  • throws ChildNotFoundException
Methods
private checkComparison ( PHPHtmlParser\DTO\Selector\RuleDTO $rule , PHPHtmlParser\Dom\Node\AbstractNode $node ) : bool
 

Checks comparison condition from rules against node.

private checkKey ( PHPHtmlParser\DTO\Selector\RuleDTO $rule , PHPHtmlParser\Dom\Node\AbstractNode $node ) : bool
 

Checks key condition from rules against node.

private checkNodeValue ( ? string $nodeValue , PHPHtmlParser\DTO\Selector\RuleDTO $rule , PHPHtmlParser\Dom\Node\AbstractNode $node , ? int $index = NULL ) : bool
private checkTag ( PHPHtmlParser\DTO\Selector\RuleDTO $rule , PHPHtmlParser\Dom\Node\AbstractNode $node ) : bool
 

Checks tag condition from rules against node.

private flattenOptions ( array $optionsArray )
 

Flattens the option array.

  • return array
private getNextChild ( PHPHtmlParser\Dom\Node\AbstractNode $node , PHPHtmlParser\Dom\Node\AbstractNode $currentChild )
 

Returns the next child or null if no more children.

  • return AbstractNode | null
private match ( string $operator , string $pattern , string $value ) : bool
 

Attempts to match the given arguments with the given operator.

© 2021 Bruce Wells
Search Namespaces \ Classes
Configuration