protected function calculateItemRanges()
	{
		$this->from = $this->total ? ($this->currentPage - 1) * $this->perPage + 1 : 0;

		$this->to = min($this->total, $this->currentPage * $this->perPage);
	}
protected function calculateItemRanges()
	{
		$this->from = $this->total ? ($this->currentPage - 1) * $this->perPage + 1 : 0;

		$this->to = min($this->total, $this->currentPage * $this->perPage);
	}
protected function calculateItemRanges ( ) { $ this -> from = $ this -> total ? ( $ this -> currentPage - 1 ) * $ this -> perPage + 1 : 0 ; $ this -> to = min ( $ this -> total , $ this -> currentPage * $ this -> perPage ) ; }
Calculate the first and last item number for this instance.

@return void
Calculate the first and last item number for this instance .