public function make()
    {
        $this->pageTotal = ceil($this->total / $this->num);
        $this->page      = ($this->page > $this->pageTotal) ? $this->pageTotal : $this->page;
        $this->offset    = ($this->page == 1) ? 0 : (($this->page - 1) * $this->num);
        $this->prev      = ($this->page == 1) ? 1 : $this->page - 1;
        $this->next      = ($this->page == $this->pageTotal) ? $this->pageTotal : $this->page + 1;
        $this->last      = $this->pageTotal;

        $this->range();
    }
public function make()
    {
        $this->pageTotal = ceil($this->total / $this->num);
        $this->page      = ($this->page > $this->pageTotal) ? $this->pageTotal : $this->page;
        $this->offset    = ($this->page == 1) ? 0 : (($this->page - 1) * $this->num);
        $this->prev      = ($this->page == 1) ? 1 : $this->page - 1;
        $this->next      = ($this->page == $this->pageTotal) ? $this->pageTotal : $this->page + 1;
        $this->last      = $this->pageTotal;

        $this->range();
    }
public function make ( ) { $ this -> pageTotal = ceil ( $ this -> total / $ this -> num ) ; $ this -> page = ( $ this -> page > $ this -> pageTotal ) ? $ this -> pageTotal : $ this -> page ; $ this -> offset = ( $ this -> page == 1 ) ? 0 : ( ( $ this -> page - 1 ) * $ this -> num ) ; $ this -> prev = ( $ this -> page == 1 ) ? 1 : $ this -> page - 1 ; $ this -> next = ( $ this -> page == $ this -> pageTotal ) ? $ this -> pageTotal : $ this -> page + 1 ; $ this -> last = $ this -> pageTotal ; $ this -> range ( ) ; }
Make paginator params

@return void
Make paginator params