1 pager.class.inc public PagerDefault::getCountQuery()

Retrieve the count query for this pager.

The count query may be specified manually or, by default, taken from the query we are extending.

Return value

SelectQuery: A select query object that will return the count when executed.

File

core/includes/pager.class.inc, line 116

Class

PagerDefault
Query extender for pager queries.

Code

public function getCountQuery() {
  if ($this->customCountQuery) {
    return $this->customCountQuery;
  }
  else {
    return $this->query->countQuery();
  }
}