Interface DataProviderInterface.
delete(mixed $item) : void
mixed
Id or the model itself, to delete.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When an unusable object has been passed. |
---|
fetch(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
fetchAll(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface | \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface[] | string[]
fieldExists(string $strField) : boolean
string
The name of the property to search.
boolean
getActiveVersion(mixed $mixID) : mixed
mixed
The ID of the model.
mixed
The current version number of the requested row.getCount(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig) : int
int
getEmptyCollection() : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
getEmptyConfig() : \ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface
getEmptyFilterOptionCollection() : \ContaoCommunityAlliance\DcGeneral\Data\FilterOptionCollectionInterface
getEmptyModel() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
getFilterOptions(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig) : \ContaoCommunityAlliance\DcGeneral\Data\FilterOptionCollectionInterface
getVersion(mixed $mixID, mixed $mixVersion) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
mixed
The ID of the record.
mixed
The ID of the version.
getVersions(mixed $mixID, boolean $blnOnlyActive) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
mixed
The ID of the row.
boolean
If true, only active versions will get returned, if false all version will get returned.
isUniqueValue(string $strField, mixed $varNew, int $intId) : boolean
string
The field in which to test.
mixed
The value about to be saved.
int
The (optional) id of the item currently in scope - pass null for new items. Documentation: Evaluation - unique => If true the field value cannot be saved if it exists already.
boolean
resetFallback(string $strField) : void
string
The field to reset.
sameModels(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel1, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel2) : boolean
boolean
True - If both models are same, false if not.save(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objItem) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The passed model.saveEach(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $objItems) : void
\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
The collection containing all items to be saved.
saveVersion(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, string $strUsername) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model for which a new version shall be created.
string
The username to attach to the version as creator.
setBaseConfig(array $arrConfig) : void
array
The configuration to use.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When no source has been defined. |
---|
setVersionActive(mixed $mixID, mixed $mixVersion) : void
mixed
The ID of the model.
mixed
The version number to set active.