class PaginateController extends AbstractWidgetController (View source)

Controller for the paginate view helper

Properties

protected AssetProxyQueryResultInterface $assetProxyQueryResult
protected array $configuration
protected int $currentPage
protected int $pagesBefore
protected int $pagesAfter
$maximumNumberOfLinks
protected int $numberOfPages
protected int $displayRangeStart
protected int $displayRangeEnd

Methods

void
initializeAction()

No description

void
indexAction(int $currentPage = 1)

No description

void
calculateDisplayRange()

If a certain number of links should be displayed, adjust before and after amounts accordingly.

array
buildPagination()

Returns an array with the keys "pages", "current", "numberOfPages", "nextPage" & "previousPage"

Details

protected void initializeAction()

No description

Return Value

void

void indexAction(int $currentPage = 1)

No description

Parameters

int $currentPage

Return Value

void

protected void calculateDisplayRange()

If a certain number of links should be displayed, adjust before and after amounts accordingly.

Return Value

void

protected array buildPagination()

Returns an array with the keys "pages", "current", "numberOfPages", "nextPage" & "previousPage"

Return Value

array