pp=$p->perPage(); $this->cp=$p->currentPage()-1; } public function sl($sl) { return ($this->pp * $this->cp) + ($sl+1); } }