function views_plugin_pager::get_items_per_page
Get how many items per page this pager will display.
All but the leanest pagers should probably return a value here, so most pagers will not need to override this method.
5 calls to views_plugin_pager::get_items_per_page()
- views_plugin_pager::has_more_records in plugins/
views_plugin_pager.inc - Determine if there are more records available.
- views_plugin_pager_full::exposed_form_alter in plugins/
views_plugin_pager_full.inc - views_plugin_pager_full::get_pager_total in plugins/
views_plugin_pager_full.inc - views_plugin_pager_full::query in plugins/
views_plugin_pager_full.inc - Modify the query for paging.
- views_plugin_pager_full::update_page_info in plugins/
views_plugin_pager_full.inc - Update global paging info.
1 method overrides views_plugin_pager::get_items_per_page()
- views_plugin_pager_none::get_items_per_page in plugins/
views_plugin_pager_none.inc - Get how many items per page this pager will display.
File
-
plugins/
views_plugin_pager.inc, line 52
Class
- views_plugin_pager
- The base plugin to handle pager.
Code
public function get_items_per_page() {
return isset($this->options['items_per_page']) ? (int) $this->options['items_per_page'] : 0;
}