PHP Class Cml\Vendor\Page

Show file Open project: linhecheng/cmlphp

Public Properties

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

Protected Properties

Property Type Description
$config 分页定制显示
$coolPages 分页栏的总页数
$nowPage 当前页数
$pageShowVarName 分页变量名
$totalPages integer 分页总页数
$totalRows integer 总行数

Public Methods

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

Method Details

__construct() public method

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

setConfig() public method

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

show() public method

输出分页
public show ( )

Property Details

$barShowPage public property

分页栏每页显示的页数
public int $barShowPage
return integer

$config protected property

分页定制显示
protected $config

$coolPages protected property

分页栏的总页数
protected $coolPages

$firstRow public property

起始行数
public int $firstRow
return integer

$nowPage protected property

当前页数
protected $nowPage

$numPerPage public property

列表每页显示条数
public int $numPerPage
return integer

$pageShowVarName protected property

分页变量名
protected $pageShowVarName

$param public property

页数跳转时要带的参数
public array $param
return array

$totalPages protected property

分页总页数
protected int $totalPages
return integer

$totalRows protected property

总行数
protected int $totalRows
return integer

$url public property

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