PageSL.php 274 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Helpers;
  3. class PageSL{
  4. public $pp, $cp;
  5. public function __construct($p){
  6. $this->pp=$p->perPage();
  7. $this->cp=$p->currentPage()-1;
  8. }
  9. public function sl($sl) {
  10. return ($this->pp * $this->cp) + ($sl+1);
  11. }
  12. }