cPager Basic pager class without presentation logic
| author | Timo A. Hummel |
|---|
__construct($items, $itemsPerPage, $currentPage)
int Amount of items
int Items displayed per page
int Defines the current page
getCurrentPage()
getMaxPages() : int
intPage countgetPagesInRange() : array
Array format: Key : Page Number Value: | for "...", "current" for the current item, page number otherwise
arrayPager structureisFirstPage() : boolean
booleanTrue if we're on the first page.isLastPage() : boolean
booleanTrue if we're on the last page.$_currentPage
| private | integer |
|---|---|
| access | private |
$_itemPadding
| private | integer |
|---|---|
| access | private |
$_items
| private | integer |
|---|---|
| access | private |
$_itemsPerPage
| private | integer |
|---|---|
| access | private |
$_nextItems
| private | integer |
|---|---|
| access | private |
$_previousItems
| private | integer |
|---|---|
| access | private |