<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class PaginateUtil { public static function pack($feJuE, $z5B9p, $dULcu) { goto YbMW6; wp6gR: $UdQ1p['total'] = count($feJuE); goto E02GE; NDJ_A: if ($E3ils < 0 || $E3ils >= count($feJuE)) { $UdQ1p['records'] = array(); } else { $UdQ1p['records'] = array_slice($feJuE, $E3ils, $dULcu); } goto iG0WQ; iG0WQ: return $UdQ1p; goto mbHwR; E02GE: $E3ils = $dULcu * ($z5B9p - 1); goto NDJ_A; MXa1G: $UdQ1p['pageSize'] = $dULcu; goto wp6gR; YbMW6: $UdQ1p = array(); goto Ii5Ow; Ii5Ow: $UdQ1p['page'] = $z5B9p; goto MXa1G; mbHwR: } public static function pack1($feJuE) { goto r0Su8; UbZjG: $UdQ1p['page'] = 1; goto jt6N3; Ip0R1: $UdQ1p['records'] = $feJuE; goto R85qy; R85qy: return $UdQ1p; goto fxRyn; jt6N3: $UdQ1p['pageSize'] = count($feJuE); goto XBs1T; r0Su8: $UdQ1p = array(); goto UbZjG; XBs1T: $UdQ1p['total'] = count($feJuE); goto Ip0R1; fxRyn: } }