|
const | ORDER_ASC = 'ASC' |
|
const | ORDER_DESC = 'DESC' |
|
|
Twig | $view |
|
RouteParser | $routeparser |
|
array | $errors = [] |
|
array | $pagination_fields |
|
◆ __construct()
Galette\Core\Pagination::__construct |
( |
| ) |
|
◆ __get()
Galette\Core\Pagination::__get |
( |
string |
$name | ) |
|
◆ __isset()
Galette\Core\Pagination::__isset |
( |
string |
$name | ) |
|
◆ __set()
Galette\Core\Pagination::__set |
( |
string |
$name, |
|
|
mixed |
$value |
|
) |
| |
◆ countPages()
Galette\Core\Pagination::countPages |
( |
| ) |
|
|
protected |
Update or set pages count
- Returns
- void
◆ getDefaultDirection()
Galette\Core\Pagination::getDefaultDirection |
( |
| ) |
|
|
protected |
◆ getDefaultOrder()
Galette\Core\Pagination::getDefaultOrder |
( |
| ) |
|
|
abstractprotected |
◆ getDirection()
Galette\Core\Pagination::getDirection |
( |
| ) |
|
Get current sort direction
- Returns
- self::ORDER_ASC|self::ORDER_DESC
◆ getHref()
Galette\Core\Pagination::getHref |
( |
int |
$page | ) |
|
|
protected |
Build href
- Parameters
-
- Returns
- string
◆ invertorder()
Galette\Core\Pagination::invertorder |
( |
| ) |
|
Invert sort order
- Returns
- void
◆ reinit()
Galette\Core\Pagination::reinit |
( |
| ) |
|
◆ setCounter()
Galette\Core\Pagination::setCounter |
( |
int |
$c | ) |
|
Set counter
- Parameters
-
- Returns
- void
◆ setDirection()
Galette\Core\Pagination::setDirection |
( |
string |
$direction | ) |
|
Set sort direction
- Parameters
-
string | $direction | self::ORDER_ASC|self::ORDER_DESC |
- Returns
- void
◆ setLimits()
Galette\Core\Pagination::setLimits |
( |
Select |
$select | ) |
|
Add limits so we retrieve only relavant rows
- Parameters
-
Select | $select | Original select |
- Returns
- void
◆ setViewPagination()
Galette\Core\Pagination::setViewPagination |
( |
RouteParser |
$routeparser, |
|
|
Twig |
$view, |
|
|
bool |
$restricted = true |
|
) |
| |
Creates pagination links and assign some useful variables to the template
- Parameters
-
RouteParser | $routeparser | Application instance |
Twig | $view | View instance |
boolean | $restricted | Do not permit to display all |
- Returns
- void
◆ $pagination_fields
array Galette\Core\Pagination::$pagination_fields |
|
protected |
Initial value:= array(
'current_page',
'orderby',
'ordered',
'show',
'pages',
'counter'
)
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Core/Pagination.php