CLSYiiPager
extends CLinkPager
in package
Table of Contents
Properties
- $firstPageLabel : string
- $lastPageLabel : string
- $nextPageLabel : string
- $prevPageLabel : string
Methods
- init() : void
- createPageButton() : string
- Creates a page button
- createPageButtons() : array<string|int, mixed>
- Creates the page buttons.
Properties
$firstPageLabel
public
string
$firstPageLabel
= '«'
the text label for the first page button.
$lastPageLabel
public
string
$lastPageLabel
= '»'
the text label for the last page button.
$nextPageLabel
public
string
$nextPageLabel
= '›'
the text label for the next page button.
$prevPageLabel
public
string
$prevPageLabel
= '‹'
the text label for the previous page button.
Methods
init()
public
init() : void
createPageButton()
Creates a page button
protected
createPageButton(string $label, int $page, string $class, bool $hidden, bool $selected) : string
Parameters
- $label : string
-
the text label for the button
- $page : int
-
the page number
- $class : string
-
the CSS class for the page button.
- $hidden : bool
-
whether this page button is visible
- $selected : bool
-
whether this page button is selected
Return values
string —the generated button
createPageButtons()
Creates the page buttons.
protected
createPageButtons() : array<string|int, mixed>
Return values
array<string|int, mixed> —a list of page buttons (in HTML code).