Issue #2003494 by toddtomlinson, Frederico: Rename Views method get_total_items() to getTotalItems().

8.0.x
Alex Pott 2013-05-29 06:31:28 +01:00
parent df4aac2951
commit 33144ded52
3 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ class ViewsSelection implements SelectionInterface {
*/
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();
}
/**

View File

@ -126,7 +126,7 @@ abstract class PagerPluginBase extends PluginBase {
*
* 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;
}

View File

@ -1500,7 +1500,7 @@ class Sql extends QueryPluginBase {
$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.