You are here

public function views_plugin_pager::get_offset 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::get_offset()

Get the page offset, or how many items to skip.

Even pagers that don't actually page can skip items at the beginning, so few pagers will need to override this method.

2 calls to views_plugin_pager::get_offset()
views_plugin_pager_full::exposed_form_alter in plugins/views_plugin_pager_full.inc
views_plugin_pager_full::query in plugins/views_plugin_pager_full.inc
Modify the query for paging

File

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

Class

views_plugin_pager
The base plugin to handle pager.

Code

public function get_offset() {
  return isset($this->options['offset']) ? (int) $this->options['offset'] : 0;
}