5 class_exists(
'duzun\\hQuery\\Node',
false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'Node.php';
18 public function __construct($doc=NULL, $el_arr=NULL) {
19 if($el_arr instanceof parent) {
20 if(!$doc) $doc = $el_arr->doc();
21 $el_arr = $el_arr->ids;
23 elseif(is_array($el_arr)) {
26 parent::__construct($doc, $el_arr,
true);
35 if($el instanceof
self) {
47 foreach($el as $b => $e) {
48 if(!$this->
_has($b, $eq)) unset($el[$b]);
51 return new self($el, $this->doc);
_has($el, $eq=false)
$el < $this, with $eq == true -> $el <= $this
_doc_ids($el, $force_array=true)