public function SelectQueryExtender::countQuery
7.x select.inc | public SelectQueryExtender::countQuery() |
Get the equivalent COUNT query of this query as a new query object.
Return value
SelectQueryInterface A new SelectQuery object with no fields or expressions besides COUNT(*).
Overrides SelectQueryInterface::countQuery
1 method overrides SelectQueryExtender::countQuery()
- SearchQuery::countQuery in drupal-7.x/
modules/ search/ search.extender.inc - Builds the default count query for SearchQuery.
File
- drupal-7.x/
includes/ database/ select.inc, line 794
Class
- SelectQueryExtender
- The base extender class for Select queries.
Code
public function countQuery() {
return $this->query->countQuery();
}