This class renders a backend view panel including all elements.
__construct(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BackendViewInterface $view)
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BackendViewInterfaceThe view for which the panel is to be rendered.
render(array $ignoredPanels) : string
arrayA list with ignored elements [Optional].
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When no information of panels can be obtained from the data container. |
|---|
stringcalculatePanelElementCssClass(int $index, int $max) : string
intThe index of the element in it's panel.
intThe index of the last element in the panel.
stringgetEnvironment() : \ContaoCommunityAlliance\DcGeneral\EnvironmentInterface
isIgnoredPanel(\ContaoCommunityAlliance\DcGeneral\Panel\PanelElementInterface $element, string[] $ignoredPanels) : boolean
string[]A list with ignored elements.
booleanTrue => Element is on the ignored list. | False => Nope not in the list.renderPanelElement(\ContaoCommunityAlliance\DcGeneral\Panel\PanelElementInterface $element, string $cssClass) : string
stringThe CSS class to use for this element (even, odd, first, last, ...).
stringrenderPanelRow(\ContaoCommunityAlliance\DcGeneral\Panel\PanelInterface $panel, string[] $ignoredPanels) : string
string[]Array of class names that shall be ignored.
string$view : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BackendViewInterface