<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class PaginateUtil { public static function pack($d5ixK, $DbaB3, $FaV7Q) { goto Z8FVD; JT70G: $bCCWW['total'] = count($d5ixK); goto Ir9Ha; A4XMA: $bCCWW['page'] = $DbaB3; goto gEi8_; xH0aK: return $bCCWW; goto JqjzA; v9NKm: if ($X9g7N < 0 || $X9g7N >= count($d5ixK)) { $bCCWW['records'] = array(); } else { $bCCWW['records'] = array_slice($d5ixK, $X9g7N, $FaV7Q); } goto xH0aK; gEi8_: $bCCWW['pageSize'] = $FaV7Q; goto JT70G; Z8FVD: $bCCWW = array(); goto A4XMA; Ir9Ha: $X9g7N = $FaV7Q * ($DbaB3 - 1); goto v9NKm; JqjzA: } public static function pack1($d5ixK) { goto Pbwrf; WgmDR: $bCCWW['records'] = $d5ixK; goto V8NJ_; iLteb: $bCCWW['pageSize'] = count($d5ixK); goto ioJHr; V8NJ_: return $bCCWW; goto VMiF1; Pbwrf: $bCCWW = array(); goto t3Hz8; t3Hz8: $bCCWW['page'] = 1; goto iLteb; ioJHr: $bCCWW['total'] = count($d5ixK); goto WgmDR; VMiF1: } }