You are here

public function QueryPath::top in QueryPath 7.2

Same name and namespace in other branches
  1. 6 QueryPath/QueryPath.php \QueryPath::top()
  2. 7.3 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;
}