Class BaseView.
create(\ContaoCommunityAlliance\DcGeneral\Action $action)
| SuppressWarnings | (PHPMD.UnusedFormalParameter) |
|---|
\RuntimeException |
This method os not in use anymore. |
|---|
delete(\ContaoCommunityAlliance\DcGeneral\Action $action)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If the model to delete could not be loaded. |
|---|
edit(\ContaoCommunityAlliance\DcGeneral\Action $action)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the model could not be found by the data provider. |
|---|
enforceModelRelationship($model)
formatCurrentValue(string $field, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, string $groupMode, int $groupLength) : string
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
stringThe name of the property to format.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model from which the value shall be taken from.
stringThe grouping mode in use.
intThe length of the value to use for grouping (only used when grouping mode is ListingConfigInterface::GROUP_CHAR).
stringgetEnvironment()
getPanel()
getSubscribedEvents()
handleAction(\ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event) : void
| SuppressWarnings | (PHPMD.CyclomaticComplexity) |
|---|---|
| SuppressWarnings | (PHPMD.Superglobals) |
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
handleAjaxCall() : void
move(\ContaoCommunityAlliance\DcGeneral\Action $action)
paste(\ContaoCommunityAlliance\DcGeneral\Action $action)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When invalid parameters are encountered. |
|---|
renderPasteAfterButton(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent $event) : string
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEventThe event that has been triggered.
stringrenderPasteIntoButton(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent $event) : string
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEventThe event that has been triggered.
stringsetEnvironment(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment)
setPanel($panelContainer)
showAll(\ContaoCommunityAlliance\DcGeneral\Action $action)
undo(\ContaoCommunityAlliance\DcGeneral\Action $action)
addToTemplate(string $name, mixed $value, \Template $template) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BaseView
stringName of the value.
mixedThe value to add to the template.
buildCommand(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $objCommand, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, bool $blnCircularReference, array $arrChildRecordIds, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $previous, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $next) : string
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterfaceThe command to render the button for.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model to which the command shall get applied.
boolDeterminator if there exists a circular reference between the model and the model(s) contained in the clipboard.
arrayList of the ids of all child models of the current model.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe previous model in the collection.
stringcheckRestoreVersion() : void
| SuppressWarnings | (PHPMD.LongVariable) |
|---|
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the requested version could not be located in the database. |
|---|
createEditMask(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $originalModel, callable $preFunction, callable $postFunction) : string
| SuppressWarnings | (PHPMD.LongVariable) |
|---|
\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.
\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. |
stringcreateEmptyModelWithDefaults() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
| deprecated | Use Controller::createEmptyModelWithDefaults() instead! |
|---|
generateButtons(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $previous, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $next) : string
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model for which the buttons shall be generated for.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe previous model in the collection.
stringgenerateHeaderButton(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $command) : string
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterfaceThe command definition.
stringgenerateHeaderButtons(string $strButtonId) : string
stringThe id for the surrounding html div element.
stringgetBackCommand() : null | \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\Command
getCreateModelCommand() : null | \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\Command
getDataDefinition() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ContainerInterface
getLabelForShow(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property) : string
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterfaceThe property for which the label shall be calculated.
stringgetSelectButtons() : string[]
string[]getTemplate(string $strTemplate) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoBackendViewTemplate
stringName of the template to create.
getViewSection() : \ContaoCommunityAlliance\DcGeneral\Contao\DataDefinition\Definition\Contao2BackendViewDefinitionInterface
isMultiLanguage(mixed $mixId) : bool
mixedThe id of the current model.
boolisSelectModeActive() : bool
boolpanel(string[] $ignoredPanels) : string
string[]A list with ignored elements [Optional].
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When no information of panels can be obtained from the data container. |
|---|
stringtranslate(string $path, string|null $section) : string
stringThe path within the translation where the string can be found.
stringnullThe section from which the translation shall be retrieved.
string$notImplMsg : string
$panel : \ContaoCommunityAlliance\DcGeneral\Panel\PanelContainerInterface