class QueryPathIterator in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPathIterator
- 7.2 QueryPath/QueryPath.php \QueryPathIterator
Hierarchy
- class \QueryPathIterator extends \IteratorIterator
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
QueryPathIterator:: |
public | property | ||
QueryPathIterator:: |
private | property | ||
QueryPathIterator:: |
public | function |