Class ListView.

The implementation of a plain listing view.

 Methods

Load the collection of child items and the parent item for the currently selected parent item.

loadCollection() : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface

{@inheritdoc}

showAll(\ContaoCommunityAlliance\DcGeneral\Action $action) 

Parameters

$action

Return the table heading.

getTableHead() : array

Returns

array

Render paste top button. Returns null if no button should be rendered.

renderPasteTopButton(string $sorting) : string

Parameters

$sorting

string

The sorting mode.

Returns

string

Set label for list view.

setListViewLabel(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection, array $groupingInformation) : void

Parameters

$collection

\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface

The collection containing the models.

$groupingInformation

array

The grouping information as retrieved via BaseView::getGroupingMode().

Generate list view from current collection.

viewList(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection) : string

Parameters

$collection

\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface

The collection containing the models.

Returns

string