Contao Utils Bundle

TextualPagination extends Pagination
in package

Table of Contents

Properties

$singlePageUrl  : string
$teasers  : array<string|int, mixed>

Methods

__construct()  : mixed
Set the number of rows, the number of results per pages and the number of links.
getItemsAsArray()  : array<string|int, mixed>
Generate all page links and return them as array.

Properties

Methods

__construct()

Set the number of rows, the number of results per pages and the number of links.

public __construct(array<string|int, mixed> $teasers, string $singlePageUrl, int $intRows, int $intPerPage[, int $intNumberOfLinks = 7 ][, string $strParameter = 'page' ][, Template $objTemplate = null ][, bool $blnForceParam = false ]) : mixed
Parameters
$teasers : array<string|int, mixed>

The teasers for the pagination

$singlePageUrl : string
$intRows : int

The number of rows

$intPerPage : int

The number of items per page

$intNumberOfLinks : int = 7

The number of links to generate

$strParameter : string = 'page'

The parameter name

$objTemplate : Template = null

The template object

$blnForceParam : bool = false

Force the URL parameter

getItemsAsArray()

Generate all page links and return them as array.

public getItemsAsArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

The page links as array


        
On this page

Search results