You are here

public function views_plugin_pager::has_more_records in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_pager.inc \views_plugin_pager::has_more_records()

Determine if there are more records available.

This is primarily used to control the display of a more link.

File

plugins/views_plugin_pager.inc, line 224
Definition of views_plugin_pager.

Class

views_plugin_pager
The base plugin to handle pager.

Code

public function has_more_records() {
  return $this
    ->get_items_per_page() && $this->total_items > (intval($this->current_page) + 1) * $this
    ->get_items_per_page();
}