PHP 클래스 Contao\Pagination

파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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 Template object
$strParameter string Page paramenter
$strUrl string Request url
$strVarConnector string Variable connector

공개 메소드들

메소드 설명
__construct ( integer $intRows, integer $intPerPage, integer $intNumberOfLinks = 7, string $strParameter = 'page', Template $objTemplate = null, boolean $blnForceParam = false ) 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

보호된 메소드들

메소드 설명
linkToPage ( integer $intPage ) : string Generate a link and return the URL

메소드 상세

__construct() 공개 메소드

Set the number of rows, the number of results per pages and the number of links
public __construct ( integer $intRows, integer $intPerPage, integer $intNumberOfLinks = 7, string $strParameter = 'page', Template $objTemplate = null, boolean $blnForceParam = false )
$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 Template The template object
$blnForceParam boolean Force the URL parameter

generate() 공개 메소드

Generate the pagination menu and return it as HTML string
public generate ( string $strSeparator = ' ' ) : string
$strSeparator string The separator string
리턴 string The pagination menu as HTML string

getItemsAsArray() 공개 메소드

Generate all page links and return them as array
public getItemsAsArray ( ) : array
리턴 array The page links as array

getItemsAsString() 공개 메소드

Generate all page links separated with the given argument and return them as string
public getItemsAsString ( string $strSeparator = ' ' ) : string
$strSeparator string The separator string
리턴 string The page links as HTML string

hasFirst() 공개 메소드

Return true if the pagination menu has a "<< first" link
public hasFirst ( ) : boolean
리턴 boolean True if the pagination menu has a "<< first" link

hasLast() 공개 메소드

Return true if the pagination menu has a "last >>" link
public hasLast ( ) : boolean
리턴 boolean True if the pagination menu has a "last >>" link

hasNext() 공개 메소드

Return true if the pagination menu has a "next >" link
public hasNext ( ) : boolean
리턴 boolean True if the pagination menu has a "next >" link

hasPrevious() 공개 메소드

Return true if the pagination menu has a "< previous" link
public hasPrevious ( ) : boolean
리턴 boolean True if the pagination menu has a "< previous" link

linkToPage() 보호된 메소드

Generate a link and return the URL
protected linkToPage ( integer $intPage ) : string
$intPage integer The page ID
리턴 string The URL string

프로퍼티 상세

$arrData 보호되어 있는 프로퍼티

Data array
protected array $arrData
리턴 array

$blnForceParam 보호되어 있는 프로퍼티

Data array
protected array $blnForceParam
리턴 array

$blnShowFirstLast 보호되어 있는 프로퍼티

Show "<< first" and "last >>" links
protected bool $blnShowFirstLast
리턴 boolean

$intPage 보호되어 있는 프로퍼티

Current page number
protected int $intPage
리턴 integer

$intRows 보호되어 있는 프로퍼티

Total number of rows
protected int $intRows
리턴 integer

$intRowsPerPage 보호되어 있는 프로퍼티

Number of rows per page
protected int $intRowsPerPage
리턴 integer

$intTotalPages 보호되어 있는 프로퍼티

Total number of pages
protected int $intTotalPages
리턴 integer

$lblFirst 보호되어 있는 프로퍼티

Label for the "<< first" link
protected string $lblFirst
리턴 string

$lblLast 보호되어 있는 프로퍼티

Label for the "last >>" link
protected string $lblLast
리턴 string

$lblNext 보호되어 있는 프로퍼티

Label for the "next >" link
protected string $lblNext
리턴 string

$lblPrevious 보호되어 있는 프로퍼티

Label for the "< previous" link
protected string $lblPrevious
리턴 string

$lblTotal 보호되어 있는 프로퍼티

Label for "total pages"
protected string $lblTotal
리턴 string

$objTemplate 보호되어 있는 프로퍼티

Template object
protected Template,contao|object $objTemplate
리턴 Template | object

$strParameter 보호되어 있는 프로퍼티

Page paramenter
protected string $strParameter
리턴 string

$strUrl 보호되어 있는 프로퍼티

Request url
protected string $strUrl
리턴 string

$strVarConnector 보호되어 있는 프로퍼티

Variable connector
protected string $strVarConnector
리턴 string