protected function calculateCurrentAndLastPages()
	{
		$this->lastPage = (int) ceil($this->total / $this->perPage);

		$this->currentPage = $this->calculateCurrentPage($this->lastPage);
	}
protected function calculateCurrentAndLastPages()
	{
		$this->lastPage = (int) ceil($this->total / $this->perPage);

		$this->currentPage = $this->calculateCurrentPage($this->lastPage);
	}
protected function calculateCurrentAndLastPages ( ) { $ this -> lastPage = ( int ) ceil ( $ this -> total / $ this -> perPage ) ; $ this -> currentPage = $ this -> calculateCurrentPage ( $ this -> lastPage ) ; }
Calculate the current and last pages for this instance.

@return void
Calculate the current and last pages for this instance .