PHP 클래스 Cml\Vendor\Page

파일 보기 프로젝트 열기: linhecheng/cmlphp

공개 프로퍼티들

프로퍼티 타입 설명
$barShowPage integer 分页栏每页显示的页数
$firstRow integer 起始行数
$numPerPage integer 列表每页显示条数
$param array 页数跳转时要带的参数
$url string 分页的基础url地址默认获取当前操作

보호된 프로퍼티들

프로퍼티 타입 설명
$config 分页定制显示
$coolPages 分页栏的总页数
$nowPage 当前页数
$pageShowVarName 分页变量名
$totalPages integer 分页总页数
$totalRows integer 总行数

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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

setConfig() 공개 메소드

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

show() 공개 메소드

输出分页
public show ( )

프로퍼티 상세

$barShowPage 공개적으로 프로퍼티

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

$config 보호되어 있는 프로퍼티

分页定制显示
protected $config

$coolPages 보호되어 있는 프로퍼티

分页栏的总页数
protected $coolPages

$firstRow 공개적으로 프로퍼티

起始行数
public int $firstRow
리턴 integer

$nowPage 보호되어 있는 프로퍼티

当前页数
protected $nowPage

$numPerPage 공개적으로 프로퍼티

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

$pageShowVarName 보호되어 있는 프로퍼티

分页变量名
protected $pageShowVarName

$param 공개적으로 프로퍼티

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

$totalPages 보호되어 있는 프로퍼티

分页总页数
protected int $totalPages
리턴 integer

$totalRows 보호되어 있는 프로퍼티

总行数
protected int $totalRows
리턴 integer

$url 공개적으로 프로퍼티

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