Class ParentView.

Implementation of the parent view.

 Methods

{@inheritDoc}

enforceModelRelationship($model) 

Parameters

$model

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

loadCollection() : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
Consumes input parameter "id".

Returns

{@inheritdoc}

showAll(\ContaoCommunityAlliance\DcGeneral\Action $action) 

Parameters

$action

Retrieve a list of html buttons to use in the top panel (submit area).

getHeaderButtons(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel) : string

Parameters

Returns

string

Retrieve a list of html buttons to use in the top panel (submit area).

getHeaderEditButtons(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel) : null | string

Parameters

Returns

nullstring

Load the parent model for the current list.

loadParentModel() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException If the parent view requirements are not fulfilled - either no data provider defined or no parent model id given.

Returns

Render the entries for parent view.

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

Parameters

$groupingInformation

array

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

Render the header of the parent view with information from the parent table.

renderFormattedHeaderFields(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel) : array
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Parameters

Returns

array

Show parent view mode 4.

viewParent(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel) : string

Parameters

$collection

\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface

The collection containing the models.

Returns

stringHTML output