lib/pagination.php
public function setCurrent($current) {
        if(!$this->routeKeyPrefix)
            $current = str_replace($this->routeKeyPrefix,'',$current);
        if(!is_numeric($current)) return;
        if($current <= $this->getMax()) $this->current_page = $current;
        else $this->current_page = $this->getMax();
    }
public function setCurrent($current) {
        if(!$this->routeKeyPrefix)
            $current = str_replace($this->routeKeyPrefix,'',$current);
        if(!is_numeric($current)) return;
        if($current <= $this->getMax()) $this->current_page = $current;
        else $this->current_page = $this->getMax();
    }
public function setCurrent ( $ current ) { if ( ! $ this -> routeKeyPrefix ) $ current = str_replace ( $ this -> routeKeyPrefix , '' , $ current ) ; if ( ! is_numeric ( $ current ) ) return ; if ( $ current <= $ this -> getMax ( ) ) $ this -> current_page = $ current ; else $ this -> current_page = $ this -> getMax ( ) ; }
set the current page number
@param $current int
set the current page number