lib/pagination.php
public function getInRange($range = null) {
        if(is_null($range))
            $range = $this->range;
        $current_range = array( ($this->current_page-$range < 1 ? 1 : $this->current_page-$range),
            ($this->current_page+$range > $this->getMax() ? $this->getMax() : $this->current_page+$range));
        $rangeIDs = array();
        for($x = $current_range[0]; $x <= $current_range[1]; ++$x) {
            $rangeIDs[] = $x;
        }
        return $rangeIDs;
    }
public function getInRange($range = null) {
        if(is_null($range))
            $range = $this->range;
        $current_range = array( ($this->current_page-$range < 1 ? 1 : $this->current_page-$range),
            ($this->current_page+$range > $this->getMax() ? $this->getMax() : $this->current_page+$range));
        $rangeIDs = array();
        for($x = $current_range[0]; $x <= $current_range[1]; ++$x) {
            $rangeIDs[] = $x;
        }
        return $rangeIDs;
    }
public function getInRange ( $ range = null ) { if ( is_null ( $ range ) ) $ range = $ this -> range ; $ current_range = array ( ( $ this -> current_page - $ range < 1 ? 1 : $ this -> current_page - $ range ) , ( $ this -> current_page + $ range > $ this -> getMax ( ) ? $ this -> getMax ( ) : $ this -> current_page + $ range ) ) ; $ rangeIDs = array ( ) ; for ( $ x = $ current_range [ 0 ] ; $ x <= $ current_range [ 1 ] ; ++ $ x ) { $ rangeIDs [ ] = $ x ; } return $ rangeIDs ; }
return all page numbers within the given range
@param $range int
@return array page numbers in range
return all page numbers within the given range