This class manages the displaying of the edit/create mask containing the widgets.
__construct(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BackendViewInterface $view, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $originalModel, callable $preFunction, callable $postFunction, string $breadcrumb)
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BackendViewInterfaceThe view in use.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe data from the original data.
callableThe function to call before saving an item.
callableThe function to call after saving an item.
stringThe rendered breadcrumb.
execute() : string
| SuppressWarnings | (PHPMD.LongVariable) |
|---|
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If the data container is not editable, closed. |
|---|---|
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
If an unknown property is encountered in the palette. |
stringgetEnvironment() : \ContaoCommunityAlliance\DcGeneral\EnvironmentInterface
buildFieldSet(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoWidgetManager $widgetManager, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $propertyValues) : array
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoWidgetManagerThe widget manager in use.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterfaceThe palette to use.
arraycheckCreatable(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model to be edited, if this is given, we are not in create mode.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the definition is not editable. |
|---|
checkEditable(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the definition is not editable. |
|---|
clearBackendStates() : void
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
doPersist() : void
ensurePropertyExists(string $property, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\PropertiesDefinitionInterface $propertyDefinitions) : void
stringThe property name to check.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\PropertiesDefinitionInterfaceThe property definitions.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When the property is not registered in the definition. |
|---|
getButtonLabel(string $buttonLabel) : string
stringThe non translated label for the button.
stringgetDataDefinition() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ContainerInterface
getEditButtons() : string[]
string[]getHeadline() : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\string.
getManualSortingProperty() : string | null
stringnull
handlePostPersist() : void
handlePrePersist() : void
handleSubmit(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
isPopup() : bool
boolprocessInput(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoWidgetManager $widgetManager) : null | \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoWidgetManagerThe widget manager in use.
storeVersion(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
| SuppressWarnings | (PHPMD.LongVariable) |
|---|
$errors : array
$originalModel : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
$postFunction : callable | null
$preFunction : callable | null
$view : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BackendViewInterface