Pager.php
system/Pager/Pager.php
1 class
22 methods
class Pager
Class Pager The Pager class provides semi-automatic and manual methods for creating pagination links and reading the current url's query variable, "page" to determine the current page. This class can support multiple paginations on a single page.
__construct
(PagerConfig $config, RendererInterface $view)
links
(string $group = 'default', string $template = 'default_full')
simpleLinks
(string $group = 'default', string $template = 'default_simple')
makeLinks
(int $page, ?int $perPage, int $total, string $template = 'default_full', int $segment = 0, ?string $group = 'default')
displayLinks
(string $group, string $template)
store
(string $group, int $page, ?int $perPage, int $total, int $segment = 0)
setSegment
(int $number, string $group = 'default')
setPath
(string $path, string $group = 'default')
getTotal
(string $group = 'default')
getPageCount
(string $group = 'default')
getCurrentPage
(string $group = 'default')
hasMore
(string $group = 'default')
getLastPage
(string $group = 'default')
getFirstPage
(string $group = 'default')
getPageURI
(?int $page = null, string $group = 'default', bool $returnObject = false)
getNextPageURI
(string $group = 'default', bool $returnObject = false)
getPreviousPageURI
(string $group = 'default', bool $returnObject = false)
getPerPage
(string $group = 'default')
getDetails
(string $group = 'default')
only
(array $queries)
ensureGroup
(string $group, ?int $perPage = null)
calculateCurrentPage
(string $group)