This class serves as main controller class in dc general.
__call(string $name, array $arguments) : void
SuppressWarnings | (PHPMD.UnusedFormalParameter) |
---|
string
Method name.
array
The method arguments.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
Always. |
---|
applyClipboardActions(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $source, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $after, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $into, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $parentModelId, \ContaoCommunityAlliance\DcGeneral\Clipboard\FilterInterface $filter, array $items)
assembleAllChildrenFrom($objModel, $strDataProvider)
createClonedModel($model)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
For constraint violations. |
---|
createEmptyModelWithDefaults()
fetchModelFromProvider($modelId, $providerName)
getBaseConfig(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $parentId) : \ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface
getEnvironment()
getModelFromClipboardItem(\ContaoCommunityAlliance\DcGeneral\Clipboard\ItemInterface $item)
getModelsFromClipboard(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $parentModelId)
getModelsFromClipboardItems(array $items)
getSupportedLanguages(mixed $mixID) : array
mixed
The id of the item for which to retrieve the valid languages.
array
handle(\ContaoCommunityAlliance\DcGeneral\Action $action)
isRootModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model)
pasteAfter(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $previousModel, \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $models, $sortedBy)
\RuntimeException |
When no models have been passed. |
---|
pasteInto(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel, \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $models, $sortedBy)
pasteTop(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $models, $sortedBy, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $parentId)
searchParentOf(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When a root model has been passed or not in hierarchical mode. |
---|
searchParentOfIn(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $models)
setEnvironment(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment)
setParent(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $childModel, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel)
setRootModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model)
setSameParent(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $receivingModel, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $sourceModel, $parentTable)
updateModelFromPropertyBag($model, $propertyValues)
assembleChildrenFor(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, string|null $sortingProperty) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model for which the children shall be retrieved.
string
null
The property name to use for sorting.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When not in hierarchical mode. |
---|
assembleSiblingsFor(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, string|null $sortingProperty, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $parentId) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
todo | This might return a lot of models, we definately want to use some lazy approach rather than this. |
---|
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model for which the siblings shall be retrieved from.
string
null
The property name to use for sorting.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When no parent model can be located. |
---|
doDeepCopy(array $deepCopyList) : void
array
The deep copy list.
applyAction(array $action, array $deepCopyList, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel) : void
array
The action, containing a model and an item.
array
A list of models that need deep copy.
\UnexpectedValueException |
When the action is neither create, copy or deep copy. |
---|
doActions(array $actions, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $after, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $into, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $parentModelId, array $items) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
array
The actions collection.
array
Write-back clipboard items.
doCloneAction(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
ensureSameGrouping(array $actions, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $after) : void
array
The actions collection.
fetchModelsFromClipboard(\ContaoCommunityAlliance\DcGeneral\Clipboard\FilterInterface|null $filter, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $parentModelId) : array
array
getActionsFromSource(\ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $source, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface|null $parentModelId) : array
array
handleClonedModelProperty(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\Data\DataProviderInterface $dataProvider) : void
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface
The property to handle.
\ContaoCommunityAlliance\DcGeneral\Data\DataProviderInterface
The data provider the model originates from.
sortAndPersistModels(array $actions, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $after, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $into, \ContaoCommunityAlliance\DcGeneral\Data\ModelIdInterface $parentModelId, array $items) : \ContaoCommunityAlliance\DcGeneral\Data\DefaultCollection | \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface[]
array
The actions collection.
array
Write-back clipboard items.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the parameters for the pasting destination are invalid. |
---|
$notImplMsg : string