Class Selector
- package PHPHtmlParser
Cloneable
Instantiable
Methods |
public
__construct
(
string
$selector
,
PHPHtmlParser\Selector\ParserInterface
$parser
) Constructs with the selector string |
public
checkComparison
(
array
$rule
,
PHPHtmlParser\Dom\AbstractNode
$node
) :
bool
Checks comparison condition from rules against node.
|
public
find
(
PHPHtmlParser\Dom\AbstractNode
$node
) :
PHPHtmlParser\Dom\Collection
Attempts to find the selectors starting from the given
|
public
getSelectors
() Returns the selectors that where found in __construct
|
public
setDepthFirstFind
(
bool
$status
) :
void
|
Properties |
protected
$selectors
|
Methods |
protected
alterNext
(
array
$rule
) :
array
Attempts to figure out what the alteration will be for
|
protected
checkKey
(
array
$rule
,
PHPHtmlParser\Dom\AbstractNode
$node
) :
bool
Checks key condition from rules against node.
|
protected
checkTag
(
array
$rule
,
PHPHtmlParser\Dom\AbstractNode
$node
) :
bool
Checks tag condition from rules against node.
|
protected
flattenOptions
(
array
$optionsArray
) Flattens the option array.
|
protected
getNextChild
(
PHPHtmlParser\Dom\AbstractNode
$node
,
PHPHtmlParser\Dom\AbstractNode
$currentChild
) Returns the next child or null if no more children.
|
protected
match
(
string
$operator
,
string
$pattern
,
string
$value
) :
bool
Attempts to match the given arguments with the given operator.
|
protected
seek
(
array
$nodes
,
array
$rule
,
array
$options
) :
array
Attempts to find all children that match the rule
|
Properties |
private
$depthFirst
|
Methods |
private
checkNodeValue
(
?
string
$nodeValue
,
array
$rule
,
PHPHtmlParser\Dom\AbstractNode
$node
,
?
int
$index
=
NULL
) :
bool
|