Default implementation of a limit panel element.

 Methods

{@inheritDoc}

getAmount() 

{@inheritDoc}

getOffset() 

{@inheritDoc}

initialize(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig, \ContaoCommunityAlliance\DcGeneral\Panel\PanelElementInterface $objElement) 

Parameters

$objConfig

$objElement

{@inheritDoc}

render(\ContaoCommunityAlliance\DcGeneral\View\ViewTemplateInterface $objTemplate) 
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Parameters

$objTemplate

{@inheritDoc}

setAmount($intAmount) 

Parameters

$intAmount

{@inheritDoc}

setOffset($intOffset) 

Parameters

$intOffset

Calculate the total amount of items.

calculateTotal() : void

Retrieve the amount of items to display per page.

getItemsPerPage() : int
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Returns

int

Retrieve the persistent value from the input provider.

getPersistent() : array

Returns

array

Store the persistent value in the input provider.

setPersistent(int $intOffset, int $intAmount) : void

Parameters

$intOffset

int

The offset.

$intAmount

int

The amount of items to show.

 Properties

 

The current amount.

$intAmount : int
 

The current offset.

$intOffset : int
 

The total amount of all valid entries.

$intTotal : int