This class renders a backend view panel including all elements.

 Methods

Create a new instance.

__construct(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BackendViewInterface $view) 

Parameters

Render the panels.

render(array $ignoredPanels) : string

Parameters

$ignoredPanels

array

A list with ignored elements [Optional].

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException When no information of panels can be obtained from the data container.

Returns

string

Calculate the correct CSS class for a panel element.

calculatePanelElementCssClass(int $index, int $max) : string

Parameters

$index

int

The index of the element in it's panel.

$max

int

The index of the last element in the panel.

Returns

string

Check if the current element is in the ignored list.

isIgnoredPanel(\ContaoCommunityAlliance\DcGeneral\Panel\PanelElementInterface $element, string[] $ignoredPanels) : boolean

Parameters

$ignoredPanels

string[]

A list with ignored elements.

Returns

booleanTrue => Element is on the ignored list. | False => Nope not in the list.

Render a single panel element.

renderPanelElement(\ContaoCommunityAlliance\DcGeneral\Panel\PanelElementInterface $element, string $cssClass) : string

Parameters

$cssClass

string

The CSS class to use for this element (even, odd, first, last, ...).

Returns

string

Render a panel.

renderPanelRow(\ContaoCommunityAlliance\DcGeneral\Panel\PanelInterface $panel, string[] $ignoredPanels) : string

Parameters

$ignoredPanels

string[]

Array of class names that shall be ignored.

Returns

string

 Properties

 

The backend view for which the panel is to be rendered.

$view : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BackendViewInterface