public function QueryPath::top in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPath::top()
- 7.2 QueryPath/QueryPath.php \QueryPath::top()
File
- QueryPath/
QueryPath.php, line 202
Class
Code
public function top($selector = NULL) {
$this
->setMatches($this->document->documentElement);
return !empty($selector) ? $this
->find($selector) : $this;
}