Commit 33144ded authored by alexpott's avatar alexpott

Issue #2003494 by toddtomlinson, Frederico: Rename Views method...

Issue #2003494 by toddtomlinson, Frederico: Rename Views method get_total_items() to getTotalItems().
parent df4aac29
......@@ -166,7 +166,7 @@ public function getReferencableEntities($match = NULL, $match_operator = 'CONTAI
*/
public function countReferencableEntities($match = NULL, $match_operator = 'CONTAINS') {
$this->getReferencableEntities($match, $match_operator);
return $this->view->pager->get_total_items();
return $this->view->pager->getTotalItems();
}
/**
......
......@@ -126,7 +126,7 @@ function set_current_page($number = NULL) {
*
* If NULL, we do not yet know what the total number of items are.
*/
function get_total_items() {
public function getTotalItems() {
return $this->total_items;
}
......
......@@ -1500,7 +1500,7 @@ function execute(ViewExecutable $view) {
$view->pager->postExecute($view->result);
if ($view->pager->use_count_query() || !empty($view->get_total_rows)) {
$view->total_rows = $view->pager->get_total_items();
$view->total_rows = $view->pager->getTotalItems();
}
// Load all entities contained in the results.
......
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