You are here

public function QueryPath::top in QueryPath 6

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

File

QueryPath/QueryPath.php, line 202

Class

QueryPath

Code

public function top($selector = NULL) {
  $this
    ->setMatches($this->document->documentElement);
  return !empty($selector) ? $this
    ->find($selector) : $this;
}