Pagination
class Pagination (View source)
Methods
__construct(int $totalItems, int $itemsPerPage, int $currentPage)
No description
int
getTotalItems()
No description
int
getItemsPerPage()
No description
int
getCurrentPage()
No description
int
getNumberOfPages()
No description
int
getStartPage(int $numLinks)
No description
int
getEndPage(int $numLinks)
No description
bool
isFirstPage()
No description
bool
isLastPage()
No description
bool
hasNextPage()
No description
bool
hasPreviousPage()
No description
int
getNextPage()
No description
int
getPreviousPage()
No description
int
getOffset()
Get the offset for database queries
int
getLimit()
Get the limit for database queries
Details
__construct(int $totalItems, int $itemsPerPage, int $currentPage)
No description
int
getTotalItems()
No description
int
getItemsPerPage()
No description
int
getCurrentPage()
No description
int
getNumberOfPages()
No description
int
getStartPage(int $numLinks)
No description
int
getEndPage(int $numLinks)
No description
bool
isFirstPage()
No description
bool
isLastPage()
No description
bool
hasNextPage()
No description
bool
hasPreviousPage()
No description
int
getNextPage()
No description
int
getPreviousPage()
No description
int
getOffset()
Get the offset for database queries
int
getLimit()
Get the limit for database queries