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) |
string
The name of the property to format.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model from which the value shall be taken from.
string
The grouping mode in use.
int
The length of the value to use for grouping (only used when grouping mode is ListingConfigInterface::GROUP_CHAR).
string
getEnvironment()
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\GetPasteButtonEvent
The event that has been triggered.
string
renderPasteIntoButton(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent $event) : string
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent
The event that has been triggered.
string
setEnvironment(\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
string
Name of the value.
mixed
The 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\CommandInterface
The command to render the button for.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model to which the command shall get applied.
bool
Determinator if there exists a circular reference between the model and the model(s) contained in the clipboard.
array
List of the ids of all child models of the current model.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The previous model in the collection.
string
checkRestoreVersion() : 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\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.
\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
createEmptyModelWithDefaults() : \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\ModelInterface
The model for which the buttons shall be generated for.
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The previous model in the collection.
string
generateHeaderButton(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $command) : string
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
The command definition.
string
generateHeaderButtons(string $strButtonId) : string
string
The id for the surrounding html div element.
string
getBackCommand() : 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\PropertyInterface
The property for which the label shall be calculated.
string
getSelectButtons() : string[]
string[]
getTemplate(string $strTemplate) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoBackendViewTemplate
string
Name of the template to create.
getViewSection() : \ContaoCommunityAlliance\DcGeneral\Contao\DataDefinition\Definition\Contao2BackendViewDefinitionInterface
isMultiLanguage(mixed $mixId) : bool
mixed
The id of the current model.
bool
isSelectModeActive() : bool
bool
panel(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. |
---|
string
translate(string $path, string|null $section) : string
string
The path within the translation where the string can be found.
string
null
The section from which the translation shall be retrieved.
string
$notImplMsg : string
$panel : \ContaoCommunityAlliance\DcGeneral\Panel\PanelContainerInterface