public function 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

SelectQueryInterface A count query object.

2 calls to PagerDefault::getCountQuery()
PagerDefault::execute in drupal-7.x/includes/pager.inc
Override the execute method.
PagerDefault::execute in drupal-7.x/includes/pager.inc
Override the execute method.

Archivo

drupal-7.x/includes/pager.inc, line 119
Functions to aid in presenting database results as a set of pages.

Class

PagerDefault
Query extender for pager queries.

Código

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