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?
|
void |
setBase
(int $base)
Sets first page (base) number.
|
void |
setItemCount
(int $itemCount)
Sets the total number of items.
|
void |
setItemsPerPage
(int $itemsPerPage)
Sets the number of items to display on a single page.
|
void |
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 119 getBasepublic int getBase () Returns first page (base) number.
|
||||||||||||
line 231 getCountdownOffsetpublic int getCountdownOffset () Returns the absolute index of the first item on current page in countdown paging.
|
||||||||||||
line 85 getFirstPagepublic int getFirstPage () Returns first page number.
|
||||||||||||
line 209 getItemCountpublic int getItemCount () Returns the total number of items.
|
||||||||||||
line 186 getItemsPerPagepublic int getItemsPerPage () Returns the number of items to display on a single page.
|
||||||||||||
line 96 getLastPagepublic int getLastPage () Returns last page number.
|
||||||||||||
line 242 getLengthpublic int getLength () Returns the number of items on current page.
|
||||||||||||
line 220 getOffsetpublic int getOffset () Returns the absolute index of the first item on current page.
|
||||||||||||
line 74 getPagepublic int getPage () Returns current page number.
|
||||||||||||
line 163 getPageCountpublic int getPageCount () Returns the total number of pages.
|
||||||||||||
line 130 getPageIndexprotected int getPageIndex () Returns zero-based page number.
|
||||||||||||
line 141 isFirstpublic bool isFirst () Is the current page the first one?
|
||||||||||||
line 152 isLastpublic bool isLast () Is the current page the last one?
|
||||||||||||
line 108 setBasepublic void setBase (int $base) Sets first page (base) number.
|
||||||||||||
line 198 setItemCountpublic void setItemCount (int $itemCount) Sets the total number of items.
|
||||||||||||
line 175 setItemsPerPagepublic void setItemsPerPage (int $itemsPerPage) Sets the number of items to display on a single page.
|
||||||||||||
line 63 setPagepublic void setPage (int $page) Sets current page number.
|