function views_plugin_pager::set_current_page

3.x views_plugin_pager.inc views_plugin_pager::set_current_page($number = NULL)

Set the current page.

Parameters

$number: If provided, the page number will be set to this. If NOT provided, the page number will be set from the global page array.

1 method overrides views_plugin_pager::set_current_page()

File

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

Class

views_plugin_pager
The base plugin to handle pager.

Code

function set_current_page($number = NULL) {
  if (!is_numeric($number) || $number < 0) {
    $number = 0;
  }
  $this->current_page = $number;
}