function views_plugin_pager_full::get_pager_total

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_pager_full.inc \views_plugin_pager_full::get_pager_total()
1 call to views_plugin_pager_full::get_pager_total()
views_plugin_pager_full::update_page_info in plugins/views_plugin_pager_full.inc
Update global paging info.

File

plugins/views_plugin_pager_full.inc, line 240

Class

views_plugin_pager_full
The plugin to handle full pager.

Code

function get_pager_total() {
    if ($items_per_page = intval($this->get_items_per_page())) {
        return ceil($this->total_items / $items_per_page);
    }
    else {
        return 1;
    }
}