<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class PaginateUtil { public static function pack($laNjB, $WibEV, $WovE4) { goto Yz937; Yz937: $gbVzz = array(); goto NZrqS; qFryz: $MkLTs = $WovE4 * ($WibEV - 1); goto v6b3w; NZrqS: $gbVzz['page'] = $WibEV; goto X_S8R; hOTrV: return $gbVzz; goto BM3ky; KauA7: $gbVzz['total'] = count($laNjB); goto qFryz; v6b3w: if ($MkLTs < 0 || $MkLTs >= count($laNjB)) { $gbVzz['records'] = array(); } else { $gbVzz['records'] = array_slice($laNjB, $MkLTs, $WovE4); } goto hOTrV; X_S8R: $gbVzz['pageSize'] = $WovE4; goto KauA7; BM3ky: } public static function pack1($laNjB) { goto DQw67; DQw67: $gbVzz = array(); goto pmA3j; x6eLK: $gbVzz['records'] = $laNjB; goto OnJga; CP5f0: $gbVzz['pageSize'] = count($laNjB); goto QVdTG; pmA3j: $gbVzz['page'] = 1; goto CP5f0; OnJga: return $gbVzz; goto s5tbq; QVdTG: $gbVzz['total'] = count($laNjB); goto x6eLK; s5tbq: } }