Pagination
分页计算类
public function __construct($page, $count)
$page
当前页码
getPage
字面意思
字面意思
getCount
字面意思
getLimitOffset
获取偏移量,如 limit 20, 10
中的 20
获取结束的偏移量,如 中的 29
calcPageCount
根据记录数计算总页数
例子
$page = new \Imi\Util\Pagination(10, 15);
echo $limit;