You are here

class QueryPathIterator in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/QueryPath.php \QueryPathIterator
  2. 7.2 QueryPath/QueryPath.php \QueryPathIterator

Hierarchy

Expanded class hierarchy of QueryPathIterator

File

QueryPath/QueryPath.php, line 2168

View source
class QueryPathIterator extends IteratorIterator {
  public $options = array();
  private $qp = NULL;
  public function current() {
    if (!isset($this->qp)) {
      $this->qp = qp(parent::current(), NULL, $this->options);
    }
    else {
      $splos = new SplObjectStorage();
      $splos
        ->attach(parent::current());
      $this->qp
        ->setMatches($splos);
    }
    return $this->qp;
  }

}

Members