PHP Class Cml\Vendor\Page

Afficher le fichier Open project: linhecheng/cmlphp

Méthodes publiques

Свойство Type Description
$barShowPage integer 分页栏每页显示的页数
$firstRow integer 起始行数
$numPerPage integer 列表每页显示条数
$param array 页数跳转时要带的参数
$url string 分页的基础url地址默认获取当前操作

Protected Properties

Свойство Type Description
$config 分页定制显示
$coolPages 分页栏的总页数
$nowPage 当前页数
$pageShowVarName 分页变量名
$totalPages integer 分页总页数
$totalRows integer 总行数

Méthodes publiques

Méthode Description
__construct ( integer $totalRows, integer $numPerPage = 20, array $param = [] ) 构造函数
setConfig ( string $name, string $value ) : void 配置参数
show ( ) 输出分页

Method Details

__construct() public méthode

构造函数
public __construct ( integer $totalRows, integer $numPerPage = 20, array $param = [] )
$totalRows integer 总行数
$numPerPage integer 每页显示条数
$param array 分页跳转时带的参数 如:['name' => '张三']

setConfig() public méthode

配置参数
public setConfig ( string $name, string $value ) : void
$name string 配置项
$value string 配置的值
Résultat void

show() public méthode

输出分页
public show ( )

Property Details

$barShowPage public_oe property

分页栏每页显示的页数
public int $barShowPage
Résultat integer

$config protected_oe property

分页定制显示
protected $config

$coolPages protected_oe property

分页栏的总页数
protected $coolPages

$firstRow public_oe property

起始行数
public int $firstRow
Résultat integer

$nowPage protected_oe property

当前页数
protected $nowPage

$numPerPage public_oe property

列表每页显示条数
public int $numPerPage
Résultat integer

$pageShowVarName protected_oe property

分页变量名
protected $pageShowVarName

$param public_oe property

页数跳转时要带的参数
public array $param
Résultat array

$totalPages protected_oe property

分页总页数
protected int $totalPages
Résultat integer

$totalRows protected_oe property

总行数
protected int $totalRows
Résultat integer

$url public_oe property

分页的基础url地址默认获取当前操作
public string $url
Résultat string