public function getLinks($nb = 5)
    {
        $links = [];
        $fistPage = $this->getFirstPage();
        $lastPage = $this->getLastPage();
        $currentPage = $this->getPage();

        $firstLink = $currentPage - $nb;
        $lastLink = $currentPage + $nb;

        if ($fistPage > $firstLink) {
            $firstLink = $fistPage;
        }
        if ($lastPage < $lastLink) {
            $lastLink = $lastPage;
        }

        for ($i = $firstLink; $i <= $lastLink; ++$i) {
            $links[$i] = $i;
        }

        return $links;
    }
public function getLinks($nb = 5)
    {
        $links = [];
        $fistPage = $this->getFirstPage();
        $lastPage = $this->getLastPage();
        $currentPage = $this->getPage();

        $firstLink = $currentPage - $nb;
        $lastLink = $currentPage + $nb;

        if ($fistPage > $firstLink) {
            $firstLink = $fistPage;
        }
        if ($lastPage < $lastLink) {
            $lastLink = $lastPage;
        }

        for ($i = $firstLink; $i <= $lastLink; ++$i) {
            $links[$i] = $i;
        }

        return $links;
    }
public function getLinks ( $ nb = 5 ) { $ links = [ ] ; $ fistPage = $ this -> getFirstPage ( ) ; $ lastPage = $ this -> getLastPage ( ) ; $ currentPage = $ this -> getPage ( ) ; $ firstLink = $ currentPage - $ nb ; $ lastLink = $ currentPage + $ nb ; if ( $ fistPage > $ firstLink ) { $ firstLink = $ fistPage ; } if ( $ lastPage < $ lastLink ) { $ lastLink = $ lastPage ; } for ( $ i = $ firstLink ; $ i <= $ lastLink ; ++ $ i ) { $ links [ $ i ] = $ i ; } return $ links ; }
Return pager navigation links.

@param int $nb

@return array
Return pager navigation links .