Class Paginator (namespace Nette)
Paginating math.
Object | --Paginator
Public Method Summary | |
---|---|
int |
getBase
()
Returns first page (base) number.
|
int |
Returns the absolute index of the first item on current page in countdown paging.
|
int |
getFirstPage
()
Returns first page number.
|
int |
getItemCount
()
Returns the total number of items.
|
int |
Returns the number of items to display on a single page.
|
int |
getLastPage
()
Returns last page number.
|
int |
getLength
()
Returns the number of items on current page.
|
int |
getOffset
()
Returns the absolute index of the first item on current page.
|
int |
getPage
()
Returns current page number.
|
int |
getPageCount
()
Returns the total number of pages.
|
bool |
isFirst
()
Is the current page the first one?
|
bool |
isLast
()
Is the current page the last one?
|
Paginator |
setBase
(int $base)
Sets first page (base) number.
|
Paginator |
setItemCount
(int $itemCount)
Sets the total number of items.
|
Paginator |
setItemsPerPage
(int $itemsPerPage)
Sets the number of items to display on a single page.
|
Paginator |
setPage
(int $page)
Sets current page number.
|
Protected Method Summary | |
---|---|
protected int |
getPageIndex
()
Returns zero-based page number.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
line 121 getBasepublic int getBase () Returns first page (base) number.
|
||||||||||||
line 235 getCountdownOffsetpublic int getCountdownOffset () Returns the absolute index of the first item on current page in countdown paging.
|
||||||||||||
line 86 getFirstPagepublic int getFirstPage () Returns first page number.
|
||||||||||||
line 213 getItemCountpublic int getItemCount () Returns the total number of items.
|
||||||||||||
line 189 getItemsPerPagepublic int getItemsPerPage () Returns the number of items to display on a single page.
|
||||||||||||
line 97 getLastPagepublic int getLastPage () Returns last page number.
|
||||||||||||
line 246 getLengthpublic int getLength () Returns the number of items on current page.
|
||||||||||||
line 224 getOffsetpublic int getOffset () Returns the absolute index of the first item on current page.
|
||||||||||||
line 75 getPagepublic int getPage () Returns current page number.
|
||||||||||||
line 165 getPageCountpublic int getPageCount () Returns the total number of pages.
|
||||||||||||
line 132 getPageIndexprotected int getPageIndex () Returns zero-based page number.
|
||||||||||||
line 143 isFirstpublic bool isFirst () Is the current page the first one?
|
||||||||||||
line 154 isLastpublic bool isLast () Is the current page the last one?
|
||||||||||||
line 109 setBasepublic Paginator setBase (int $base) Sets first page (base) number.
|
||||||||||||
line 201 setItemCountpublic Paginator setItemCount (int $itemCount) Sets the total number of items.
|
||||||||||||
line 177 setItemsPerPagepublic Paginator setItemsPerPage (int $itemsPerPage) Sets the number of items to display on a single page.
|
||||||||||||
line 63 setPagepublic Paginator setPage (int $page) Sets current page number.
|