Property | Type | Description | |
---|---|---|---|
$pattern | string | Pattern of CSS selectors, modified from 'mootools' | |
$selectors |
Method | Description | |
---|---|---|
__construct ( string $selector ) | Constructs with the selector string | |
find ( |
Attempts to find the selectors starting from the given node object. | |
getSelectors ( ) : array | Returns the selectors that where found in __construct |
Method | Description | |
---|---|---|
alterNext ( array $rule ) : array | Attempts to figure out what the alteration will be for the next element. | |
flattenOptions ( array $optionsArray ) : array | Flattens the option array. | |
match ( string $operator, string $pattern, string $value ) : boolean | Attempts to match the given arguments with the given operator. | |
parseSelectorString ( string $selector ) | Parses the selector string | |
seek ( array $nodes, array $rule, array $options ) : array | Attempts to find all children that match the rule given. |
public __construct ( string $selector ) | ||
$selector | string |
public find ( |
||
$node | ||
return |
protected flattenOptions ( array $optionsArray ) : array | ||
$optionsArray | array | |
return | array |
public getSelectors ( ) : array | ||
return | array |
protected parseSelectorString ( string $selector ) | ||
$selector | string |
protected string $pattern | ||
return | string |