<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class PaginateUtil { public static function pack($PcG4B, $FzbRC, $guJef) { goto HSara; oQJYs: $N2Xaa['total'] = count($PcG4B); goto Lbcdb; EF1WO: return $N2Xaa; goto znJcG; FJmLc: $N2Xaa['page'] = $FzbRC; goto u0l28; Lbcdb: $nktn1 = $guJef * ($FzbRC - 1); goto wSP1J; u0l28: $N2Xaa['pageSize'] = $guJef; goto oQJYs; HSara: $N2Xaa = array(); goto FJmLc; wSP1J: if ($nktn1 < 0 || $nktn1 >= count($PcG4B)) { $N2Xaa['records'] = array(); } else { $N2Xaa['records'] = array_slice($PcG4B, $nktn1, $guJef); } goto EF1WO; znJcG: } public static function pack1($PcG4B) { goto BjKl2; av9rX: $N2Xaa['page'] = 1; goto zr5aT; zr5aT: $N2Xaa['pageSize'] = count($PcG4B); goto PfJRd; E22jh: $N2Xaa['records'] = $PcG4B; goto AzFRw; BjKl2: $N2Xaa = array(); goto av9rX; AzFRw: return $N2Xaa; goto CXt4M; PfJRd: $N2Xaa['total'] = count($PcG4B); goto E22jh; CXt4M: } }