pQuery\HtmlSelector::__construct PHP Метод

__construct() публичный Метод

Class constructor
public __construct ( DomNode $root, string $query = '*', boolean $search_root = false, boolean $search_recursive = true, CSSQueryTokenizer $parser = null )
$root DomNode {@link $root}
$query string
$search_root boolean {@link $search_root}
$search_recursive boolean {@link $search_recursive}
$parser CSSQueryTokenizer If null, then default class will be used
    function __construct($root, $query = '*', $search_root = false, $search_recursive = true, $parser = null)
    {
        if ($parser === null) {
            $parser = new $this->parser();
        }
        $this->parser = $parser;
        $this->root =& $root;
        $this->search_root = $search_root;
        $this->search_recursive = $search_recursive;
        $this->select($query);
    }