Property | Type | Description | |
---|---|---|---|
$arrData | array | Data array | |
$blnForceParam | array | Data array | |
$blnShowFirstLast | boolean | Show "<< first" and "last >>" links | |
$intNumberOfLinks | integer | Total number of links | |
$intPage | integer | Current page number | |
$intRows | integer | Total number of rows | |
$intRowsPerPage | integer | Number of rows per page | |
$intTotalPages | integer | Total number of pages | |
$lblFirst | string | Label for the "<< first" link | |
$lblLast | string | Label for the "last >>" link | |
$lblNext | string | Label for the "next >" link | |
$lblPrevious | string | Label for the "< previous" link | |
$lblTotal | string | Label for "total pages" | |
$objTemplate | Template object | ||
$strParameter | string | Page paramenter | |
$strUrl | string | Request url | |
$strVarConnector | string | Variable connector |
Method | Description | |
---|---|---|
__construct ( integer $intRows, integer $intPerPage, integer $intNumberOfLinks = 7, string $strParameter = 'page', |
Set the number of rows, the number of results per pages and the number of links | |
generate ( string $strSeparator = ' ' ) : string | Generate the pagination menu and return it as HTML string | |
getItemsAsArray ( ) : array | Generate all page links and return them as array | |
getItemsAsString ( string $strSeparator = ' ' ) : string | Generate all page links separated with the given argument and return them as string | |
hasFirst ( ) : boolean | Return true if the pagination menu has a "<< first" link | |
hasLast ( ) : boolean | Return true if the pagination menu has a "last >>" link | |
hasNext ( ) : boolean | Return true if the pagination menu has a "next >" link | |
hasPrevious ( ) : boolean | Return true if the pagination menu has a "< previous" link |
Method | Description | |
---|---|---|
linkToPage ( integer $intPage ) : string | Generate a link and return the URL |
public __construct ( integer $intRows, integer $intPerPage, integer $intNumberOfLinks = 7, string $strParameter = 'page', |
||
$intRows | integer | The number of rows |
$intPerPage | integer | The number of items per page |
$intNumberOfLinks | integer | The number of links to generate |
$strParameter | string | The parameter name |
$objTemplate | The template object | |
$blnForceParam | boolean | Force the URL parameter |
public getItemsAsArray ( ) : array | ||
return | array | The page links as array |
public getItemsAsString ( string $strSeparator = ' ' ) : string | ||
$strSeparator | string | The separator string |
return | string | The page links as HTML string |
public hasPrevious ( ) : boolean | ||
return | boolean | True if the pagination menu has a "< previous" link |
protected linkToPage ( integer $intPage ) : string | ||
$intPage | integer | The page ID |
return | string | The URL string |
protected bool $blnShowFirstLast | ||
return | boolean |
protected int $intNumberOfLinks | ||
return | integer |
protected int $intRowsPerPage | ||
return | integer |
protected int $intTotalPages | ||
return | integer |
protected string $lblFirst | ||
return | string |
protected string $lblPrevious | ||
return | string |
protected Template,contao|object $objTemplate | ||
return |
protected string $strVarConnector | ||
return | string |