public
NPaginator
|
#
setPage(
int
$page
)
Sets current page number. Sets current page number. Parameters$page intReturnsNPaginator provides a fluent interface
|
public
int
|
#
getPage(
)
Returns current page number. Returns current page number. |
public
int
|
#
getFirstPage(
)
Returns first page number. Returns first page number. |
public
int
|
#
getLastPage(
)
Returns last page number. Returns last page number. |
public
NPaginator
|
#
setBase(
int
$base
)
Sets first page (base) number. Sets first page (base) number. Parameters$base intReturnsNPaginator provides a fluent interface
|
public
int
|
#
getBase(
)
Returns first page (base) number. Returns first page (base) number. |
protected
int
|
#
getPageIndex(
)
Returns zero-based page number. Returns zero-based page number. |
public
bool
|
#
isFirst(
)
Is the current page the first one? Is the current page the first one? |
public
bool
|
#
isLast(
)
Is the current page the last one? Is the current page the last one? |
public
int
|
#
getPageCount(
)
Returns the total number of pages. Returns the total number of pages. |
public
NPaginator
|
#
setItemsPerPage(
int
$itemsPerPage
)
Sets the number of items to display on a single page. Sets the number of items to display on a single page. Parameters$itemsPerPage intReturnsNPaginator provides a fluent interface
|
public
int
|
#
getItemsPerPage(
)
Returns the number of items to display on a single page. Returns the number of items to display on a single page. |
public
NPaginator
|
#
setItemCount(
int
$itemCount
)
Sets the total number of items. Sets the total number of items. Parameters$itemCount int (or FALSE as infinity)ReturnsNPaginator provides a fluent interface
|
public
int
|
#
getItemCount(
)
Returns the total number of items. Returns the total number of items. |
public
int
|
#
getOffset(
)
Returns the absolute index of the first item on current page. Returns the absolute index of the first item on current page. |
public
int
|
#
getCountdownOffset(
)
Returns the absolute index of the first item on current page in countdown paging. Returns the absolute index of the first item on current page in countdown paging. |
public
int
|
#
getLength(
)
Returns the number of items on current page. Returns the number of items on current page. |