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 |
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);
}