\LtPagination

Summary

Methods
Properties
Constants
__construct()
init()
pager()
renderPager()
renderButton()
$configHandle
$conf
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$configHandle

$configHandle : 

Type

$conf

$conf : 

Type

Methods

__construct()

__construct() 

init()

init() 

pager()

pager(  $page,   $count,   $url) 

Parameters

$page

int 当前页

$count

int 这个数值是你查询数据库得到的数据总量

$url

string 字串中使用 :page 表示页参数 不在意位置 如/a/:page/c/e

renderPager()

renderPager(  $pagenumber,   $pagecount,   $baseurl = '?page=:page') : string

Parameters

$pagenumber

int 当前页

$pagecount

int 总页数

$baseurl

Returns

string

renderButton()

renderButton(  $buttonLabel,   $pagenumber,   $pagecount,   $baseurl = '?page=:page') : string

Parameters

$buttonLabel

string 显示文字

$pagenumber

int 当前页

$pagecount

int 总页数

$baseurl

Returns

string