Commit 3a4632ce authored by alexpott's avatar alexpott

Issue #2002490 by themic8, jeroen12345: Rename Views method...

Issue #2002490 by themic8, jeroen12345: Rename Views method execute_count_query() to executeCountQuery().
parent 960eb828
......@@ -75,7 +75,7 @@ function get_items_per_page() {
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.
}
......
......@@ -177,7 +177,7 @@ function use_count_query() {
* 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'];
......
......@@ -1478,7 +1478,7 @@ function execute(ViewExecutable $view) {
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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment