You are here

public function QueryPath::contents in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/QueryPath.php \QueryPath::contents()
  2. 7.2 QueryPath/QueryPath.php \QueryPath::contents()

File

QueryPath/QueryPath.php, line 1041

Class

QueryPath

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;
}