Paginate
in package
Table of Contents
Properties
- $class : mixed
- $count : mixed
- $get : mixed
- $limit : mixed
- $offset : mixed
- $page : mixed
- $pages : mixed
- $query : mixed
- $size : mixed
- $url : mixed
Methods
- __construct() : mixed
- 构造函数
- next() : mixed
- show() : string
- 显示分页 pagination
- url() : string
- 生成URL函数,如有需要,可自行改写 调用函数 ($url,$par);
Properties
$class
public
static mixed
$class
$count
public
mixed
$count
$get
public
mixed
$get
= []
$limit
public
mixed
$limit
$offset
public
mixed
$offset
$page
public
mixed
$page
$pages
public
mixed
$pages
$query
public
mixed
$query
= 'page'
$size
public
mixed
$size
$url
public
mixed
$url
Methods
__construct()
构造函数
public
__construct(mixed $count[, mixed $size = 10 ]) : mixed
Parameters
- $count : mixed
- $size : mixed = 10
next()
public
next([mixed $class = 'pagination' ]) : mixed
Parameters
- $class : mixed = 'pagination'
show()
显示分页 pagination
public
show([string $class = 'pagination' ]) : string
Parameters
- $class : string = 'pagination'
Return values
stringurl()
生成URL函数,如有需要,可自行改写 调用函数 ($url,$par);
public
url(string $url[, string $par = [] ]) : string
Parameters
- $url : string
- $par : string = []