Issue #2002490 by themic8, jeroen12345: Rename Views method execute_count_query() to executeCountQuery().

8.0.x
Alex Pott 2013-05-29 06:21:58 +01:00
parent 960eb8280f
commit 3a4632cece
3 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ class None extends PagerPluginBase {
return 0;
}
function execute_count_query(&$count_query) {
public function executeCountQuery(&$count_query) {
// If we are displaying all items, never count. But we can update the count in post_execute.
}

View File

@ -177,7 +177,7 @@ abstract class PagerPluginBase extends PluginBase {
* Execute the count query, which will be done just prior to the query
* itself being executed.
*/
function execute_count_query(&$count_query) {
public function executeCountQuery(&$count_query) {
$this->total_items = $count_query->execute()->fetchField();
if (!empty($this->options['offset'])) {
$this->total_items -= $this->options['offset'];

View File

@ -1478,7 +1478,7 @@ class Sql extends QueryPluginBase {
try {
if ($view->pager->use_count_query() || !empty($view->get_total_rows)) {
$view->pager->execute_count_query($count_query);
$view->pager->executeCountQuery($count_query);
}
// Let the pager modify the query to add limits.