PHP Класс TbPager

См. также: http://twitter.github.com/bootstrap/components.html#pagination
Наследование: extends CLinkPager
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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