public function &pagination($current_page = 1, $items_per_page = 100)
    {
        $this->is_paginated = true;

        $this->currentPage($current_page);

        $this->items_per_page = (int) $items_per_page;

        if ($this->items_per_page < 1) {
            $this->items_per_page = 100;
        }

        return $this;
    }
public function &pagination($current_page = 1, $items_per_page = 100)
    {
        $this->is_paginated = true;

        $this->currentPage($current_page);

        $this->items_per_page = (int) $items_per_page;

        if ($this->items_per_page < 1) {
            $this->items_per_page = 100;
        }

        return $this;
    }
public function & pagination ( $ current_page = 1 , $ items_per_page = 100 ) { $ this -> is_paginated = true ; $ this -> currentPage ( $ current_page ) ; $ this -> items_per_page = ( int ) $ items_per_page ; if ( $ this -> items_per_page < 1 ) { $ this -> items_per_page = 100 ; } return $ this ; }
Set pagination configuration.

@param  int   $current_page
@param  int   $items_per_page
@return $this
Set pagination configuration .