function views_plugin_pager::execute_count_query
Execute the count query, which will be done just prior to the query itself being executed.
1 method overrides views_plugin_pager::execute_count_query()
- views_plugin_pager_none::execute_count_query in plugins/
views_plugin_pager_none.inc - Execute the count query, which will be done just prior to the query itself being executed.
File
-
plugins/
views_plugin_pager.inc, line 163
Class
- views_plugin_pager
- The base plugin to handle pager.
Code
public function execute_count_query(&$count_query) {
$this->total_items = $count_query->execute()
->fetchField();
if (!empty($this->options['offset'])) {
$this->total_items -= $this->options['offset'];
}
$this->update_page_info();
return $this->total_items;
}