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.
|
array |
Generates list of pages used for visual control. (experimental)
|
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 107 getBasepublic int getBase () Returns first page (base) number.
|
|||||||||||||||||||||
line 219 getCountdownOffsetpublic int getCountdownOffset () Returns the absolute index of the first item on current page in countdown paging.
|
|||||||||||||||||||||
line 73 getFirstPagepublic int getFirstPage () Returns first page number.
|
|||||||||||||||||||||
line 197 getItemCountpublic int getItemCount () Returns the total number of items.
|
|||||||||||||||||||||
line 174 getItemsPerPagepublic int getItemsPerPage () Returns the number of items to display on a single page.
|
|||||||||||||||||||||
line 84 getLastPagepublic int getLastPage () Returns last page number.
|
|||||||||||||||||||||
line 230 getLengthpublic int getLength () Returns the number of items on current page.
|
|||||||||||||||||||||
line 208 getOffsetpublic int getOffset () Returns the absolute index of the first item on current page.
|
|||||||||||||||||||||
line 62 getPagepublic int getPage () Returns current page number.
|
|||||||||||||||||||||
line 151 getPageCountpublic int getPageCount () Returns the total number of pages.
|
|||||||||||||||||||||
line 118 getPageIndexprotected int getPageIndex () Returns zero-based page number.
|
|||||||||||||||||||||
line 242 getStepspublic array getSteps ([$steps = Generates list of pages used for visual control. (experimental)
|
|||||||||||||||||||||
line 129 isFirstpublic bool isFirst () Is the current page the first one?
|
|||||||||||||||||||||
line 140 isLastpublic bool isLast () Is the current page the last one?
|
|||||||||||||||||||||
line 96 setBasepublic void setBase (int $base) Sets first page (base) number.
|
|||||||||||||||||||||
line 186 setItemCountpublic void setItemCount (int $itemCount) Sets the total number of items.
|
|||||||||||||||||||||
line 163 setItemsPerPagepublic void setItemsPerPage (int $itemsPerPage) Sets the number of items to display on a single page.
|
|||||||||||||||||||||
line 51 setPagepublic void setPage (int $page) Sets current page number.
|