You are here

public function QueryPath::cloneAll in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/QueryPath.php \QueryPath::cloneAll()
  2. 7.2 QueryPath/QueryPath.php \QueryPath::cloneAll()
1 call to QueryPath::cloneAll()
QueryPath::__clone in QueryPath/QueryPath.php

File

QueryPath/QueryPath.php, line 1575

Class

QueryPath

Code

public function cloneAll() {
  $found = new SplObjectStorage();
  foreach ($this->matches as $m) {
    $found
      ->attach($m
      ->cloneNode(TRUE));
  }
  $this
    ->setMatches($found, FALSE);
  return $this;
}