Свойство | Тип | Описание | |
---|---|---|---|
$custom_filter_map | array | Extra function map for custom filters | |
$parser | Parser object | ||
$query | string | Last performed query, result in {@link $result} | |
$result | array | Array of matching nodes | |
$root | Target of queries | ||
$search_recursive | boolean | Search recursively | |
$search_root | boolean | Include root in search, if false the only child nodes are evaluated |
Метод | Описание | |
---|---|---|
__construct ( |
Class constructor | |
__invoke ( $query = '*' ) : array | Class magic invoke method, performs {@link select()} | |
__toString ( ) : string | toString method, returns {@link $query} | |
select ( string $query = '*' ) : array | Perform query |
Метод | Описание | |
---|---|---|
error ( string $error ) | Trigger error | |
parse ( ) : boolean | Parse full query | |
parse_adjacent ( ) : boolean | Evaluate sibling nodes | |
parse_callback ( array $conditions, boolean | integer $recursive = true, boolean $check_root = false ) : array | Evaluate root node using custom callback | |
parse_conditions ( ) : array | Get query conditions (tag, attribute and filter conditions) | |
parse_getIdentifier ( boolean $do_error = true ) : string | Get identifier (parse identifier or string) | |
parse_result ( boolean $parent = false, boolean | integer $recursive = true ) : boolean | Evaluate {@link $result} | |
parse_single ( boolean | integer $recursive = true ) : boolean | Parse first bit of query, only root node has to be evaluated now |
public __construct ( |
||
$root | {@link $root} | |
$query | string | |
$search_root | boolean | {@link $search_root} |
$search_recursive | boolean | {@link $search_recursive} |
$parser | If null, then default class will be used |
public __toString ( ) : string | ||
Результат | string |
protected parse_adjacent ( ) : boolean | ||
Результат | boolean |
protected parse_conditions ( ) : array | ||
Результат | array | False on failure |
protected parse_getIdentifier ( boolean $do_error = true ) : string | ||
$do_error | boolean | Error on failure |
Результат | string | False on failure |
public array $custom_filter_map | ||
Результат | array |
public CSSQueryTokenizer,pquery $parser | ||
Результат |
public string $query | ||
Результат | string |
public bool $search_recursive | ||
Результат | boolean |
public bool $search_root | ||
Результат | boolean |