public function QueryPath::contents in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPath::contents()
- 7.2 QueryPath/QueryPath.php \QueryPath::contents()
File
- QueryPath/
QueryPath.php, line 1041
Class
Code
public function contents() {
$found = new SplObjectStorage();
foreach ($this->matches as $m) {
foreach ($m->childNodes as $c) {
$found
->attach($c);
}
}
$this
->setMatches($found);
return $this;
}