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\BackendViewInterface
The view in use.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The data from the original data.
callable
The function to call before saving an item.
callable
The function to call after saving an item.
string
The 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. |
string
getEnvironment() : \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\ContaoWidgetManager
The widget manager in use.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
The palette to use.
array
checkCreatable(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The 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
string
The property name to check.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\PropertiesDefinitionInterface
The property definitions.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When the property is not registered in the definition. |
---|
getButtonLabel(string $buttonLabel) : string
string
The non translated label for the button.
string
getDataDefinition() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ContainerInterface
getEditButtons() : string[]
string[]
getHeadline() : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\string.
getManualSortingProperty() : string | null
string
null
handlePostPersist() : void
handlePrePersist() : void
handleSubmit(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
isPopup() : bool
bool
processInput(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoWidgetManager $widgetManager) : null | \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoWidgetManager
The 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