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

parse_adjacent() защищенный Метод

Evaluate sibling nodes
protected parse_adjacent ( ) : boolean
Результат boolean
    protected function parse_adjacent()
    {
        $tmp = $this->result;
        $this->result = array();
        if (($c = $this->parse_conditions()) === false) {
            return false;
        }
        foreach ($tmp as $t) {
            if (($sibling = $t->getNextSibling()) !== false) {
                if ($sibling->match($c, true, $this->custom_filter_map)) {
                    $this->result[] = $sibling;
                }
            }
        }
        return true;
    }