PHP 클래스 TbPager

또한 보기: http://twitter.github.com/bootstrap/components.html#pagination
상속: extends CLinkPager
파일 보기 프로젝트 열기: yinhe/yincart 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$alignment the pager alignment. Valid values are 'centered' and 'right'.
$cssFile the URL of the CSS file used by this pager. Defaults to false, meaning that no CSS will be included.
$displayFirstAndLast whether to display the first and last items.
$header the text shown before page buttons. Defaults to an empty string, meaning that no header will be displayed.

공개 메소드들

메소드 설명
init ( ) ### .init()

보호된 메소드들

메소드 설명
createPageButton ( string $label, integer $page, string $class, boolean $hidden, boolean $selected ) : string ### .createPageButton()
createPageButtons ( ) : array ### .createPageButtons()

메소드 상세

createPageButton() 보호된 메소드

Creates a page button. You may override this method to customize the page buttons.
protected createPageButton ( string $label, integer $page, string $class, boolean $hidden, boolean $selected ) : string
$label string the text label for the button
$page integer the page number
$class string the CSS class for the page button. This could be 'page', 'first', 'last', 'next' or 'previous'.
$hidden boolean whether this page button is visible
$selected boolean whether this page button is selected
리턴 string the generated button

createPageButtons() 보호된 메소드

Creates the page buttons.
protected createPageButtons ( ) : array
리턴 array a list of page buttons (in HTML code).

init() 공개 메소드

Initializes the pager by setting some default property values.
public init ( )

프로퍼티 상세

$alignment 공개적으로 프로퍼티

the pager alignment. Valid values are 'centered' and 'right'.
public $alignment

$cssFile 공개적으로 프로퍼티

the URL of the CSS file used by this pager. Defaults to false, meaning that no CSS will be included.
public $cssFile

$displayFirstAndLast 공개적으로 프로퍼티

whether to display the first and last items.
public $displayFirstAndLast

$header 공개적으로 프로퍼티

the text shown before page buttons. Defaults to an empty string, meaning that no header will be displayed.
public $header