public function getPrevLinks($range = 5)
    {
        $total = $this->getTotalPages();
        $start = $this->getPage() - 1;
        $end = $this->getPage() - $range;
        $first = $this->getFirstPage();
        $links = array();
        for ($i = $start; $i > $end; $i--) {
            if ($i < $first) {
                break;
            }
            $links[] = $i;
        }

        return array_reverse($links);
    }
public function getPrevLinks($range = 5)
    {
        $total = $this->getTotalPages();
        $start = $this->getPage() - 1;
        $end = $this->getPage() - $range;
        $first = $this->getFirstPage();
        $links = array();
        for ($i = $start; $i > $end; $i--) {
            if ($i < $first) {
                break;
            }
            $links[] = $i;
        }

        return array_reverse($links);
    }
public function getPrevLinks ( $ range = 5 ) { $ total = $ this -> getTotalPages ( ) ; $ start = $ this -> getPage ( ) - 1 ; $ end = $ this -> getPage ( ) - $ range ; $ first = $ this -> getFirstPage ( ) ; $ links = array ( ) ; for ( $ i = $ start ; $ i > $ end ; $ i -- ) { if ( $ i < $ first ) { break ; } $ links [ ] = $ i ; } return array_reverse ( $ links ) ; }
get an array of previous id's

@param int $range

@return array $links
get an array of previous id s