public function QueryPath::cloneAll in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPath::cloneAll()
- 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
Code
public function cloneAll() {
$found = new SplObjectStorage();
foreach ($this->matches as $m) {
$found
->attach($m
->cloneNode(TRUE));
}
$this
->setMatches($found, FALSE);
return $this;
}