function views_plugin_pager::execute_count_query
Same name in other branches
- 7.x-3.x plugins/views_plugin_pager.inc \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 139
Class
- views_plugin_pager
- The base plugin to handle pager.
Code
function execute_count_query(&$count_query, $args) {
$query_plugin = $this->view->query;
$this->total_items = $query_plugin->db_result($query_plugin->db_query($count_query, $args));
if (!empty($this->options['offset'])) {
$this->total_items -= $this->options['offset'];
}
$this->update_page_info();
return $this->total_items;
}