Pagination
class Pagination (View source)
The Pagination class.
Constants
BASE_PAGE |
Number of the first page |
FIRST |
First page |
LESS |
The page before the previous neighbour pages |
PREVIOUS |
Previous pages |
LOWER |
Previous pages |
CURRENT |
Current page |
HIGHER |
Next pages |
NEXT |
Next pages |
MORE |
The page after the next neighbour pages |
LAST |
Last page |
Methods
simple
Create instance
Display
Method to get property Total
Method to set property total
Method to get property Current
Method to set property current
Method to get property Offset
Method to set property offset
Method to get property Result
render
Method to get property Route
route
Method to set property neighbours
Method to get property Neighbours
Method to get property Limit
Method to set property limit
Method to get property Pages
Method to set property pages
Method to get property Template
Method to set property template
Details
at line line 163
static Pagination
simple(int $current, int $limit = 10)
simple
at line line 176
__construct(int $current, int $limit = 10, int $total, int $neighbours = 4)
Create instance
at line line 220
Pagination
build()
Display
at line line 295
int
getTotal()
Method to get property Total
at line line 307
Pagination
total(int $total)
Method to set property total
at line line 319
int
getCurrent()
Method to get property Current
at line line 331
Pagination
currentPage(int $current)
Method to set property current
at line line 343
int
getOffset()
Method to get property Offset
at line line 355
Pagination
offset(int $offset)
Method to set property offset
at line line 367
PaginationResult
getResult()
Method to get property Result
at line line 381
Pagination
setResult(PaginationResult $result)
Method to set property result
at line line 393
string
render()
render
at line line 461
RouteBuilderInterface
getRouter()
Method to get property Route
at line line 473
Pagination
setRouter(RouteBuilderInterface $router)
Method to set property route
at line line 489
Pagination
route(string $route, array $query = array(), string $type = MainRouter::TYPE_PATH)
route
at line line 507
Pagination
neighbours(int $neighbours)
Method to set property neighbours
at line line 519
int
getNeighbours()
Method to get property Neighbours
at line line 529
int
getLimit()
Method to get property Limit
at line line 541
Pagination
limit(int $limit)
Method to set property limit
at line line 553
int
getPages()
Method to get property Pages
at line line 565
Pagination
pages(int $pages)
Method to set property pages
at line line 577
array
getTemplate()
Method to get property Template
at line line 590
Pagination
template(string $layout, string $engine = 'php')
Method to set property template