Swat/SwatPagination.php
public function setCurrentPage($page)
    {
        $this->current_page = max(1, (int) $page);

        $this->current_record = ($this->current_page - 1) * $this->page_size;
    }
public function setCurrentPage($page)
    {
        $this->current_page = max(1, (int) $page);

        $this->current_record = ($this->current_page - 1) * $this->page_size;
    }
public function setCurrentPage ( $ page ) { $ this -> current_page = max ( 1 , ( int ) $ page ) ; $ this -> current_record = ( $ this -> current_page - 1 ) * $ this -> page_size ; }
Set the current page that is displayed

Calculates the current_record properties.

@param integer $page The current page being displayed.
Set the current page that is displayed