public function paginate($page, $per_page=10) {
		$this->page = $page = $page ? $page:1;
		$this->per_page = $per_page;
		$this->offset(($page-1)*$per_page);
		$this->limit($per_page);

		return $this;
	}
public function paginate($page, $per_page=10) {
		$this->page = $page = $page ? $page:1;
		$this->per_page = $per_page;
		$this->offset(($page-1)*$per_page);
		$this->limit($per_page);

		return $this;
	}
public function paginate ( $ page , $ per_page = 10 ) { $ this -> page = $ page = $ page ? $ page : 1 ; $ this -> per_page = $ per_page ; $ this -> offset ( ( $ page - 1 ) * $ per_page ) ; $ this -> limit ( $ per_page ) ; return $ this ; }
Paginate the results.
@param  integer  $page
@param  integer  $per_page
@return DAL    $this
@api
Paginate the results .