Class DefaultDataProvider.
| SuppressWarnings | (PHPMD.ExcessiveClassComplexity) - There is no way to reduce this class more without reducing the interface. |
|---|
__construct()
delete($item)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When an unusable object has been passed. |
|---|
enableDefaultUuidGenerator() : \ContaoCommunityAlliance\DcGeneral\Data\DefaultDataProvider
fetch(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig)
fetchAll(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig)
fieldExists($strField)
getActiveVersion(mixed $mixID) : mixed
mixedThe ID of the row.
mixedThe current version number of the requested row.getCount(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig)
getEmptyCollection()
getEmptyConfig()
getEmptyFilterOptionCollection()
getEmptyModel()
getFilterOptions(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
if improper values have been passed (i.e. not exactly one field requested). |
|---|
getIdGenerator() : \ContaoCommunityAlliance\DcGeneral\Data\IdGeneratorInterface
getTimeStampProperty() : string | null
stringnull
getVersion($mixID, $mixVersion)
getVersions(mixed $mixID, boolean $blnOnlyActive) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
mixedThe ID of the row.
booleanIf true, only active versions will get returned, if false all version will get returned.
isUniqueValue($strField, $varNew, $intId)
resetFallback($strField)
sameModels(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel1, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel2) : boolean
booleanTrue - If both models are same, false if not.save(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objItem)
saveEach(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $objItems)
saveVersion(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, string $strUsername) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model for which a new version shall be created.
stringThe username to attach to the version as creator.
setBaseConfig(array $arrConfig)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When no source has been defined. |
|---|
setIdGenerator(\ContaoCommunityAlliance\DcGeneral\Data\IdGeneratorInterface $idGenerator) : \ContaoCommunityAlliance\DcGeneral\Data\DefaultDataProvider
setTimeStampProperty(boolean $timeStampField) : \ContaoCommunityAlliance\DcGeneral\Data\DefaultDataProvider
booleanThe property name or empty to clear.
setVersionActive(mixed $mixID, mixed $mixVersion) : void
mixedThe ID of the row.
mixedThe version number to set active.
buildFieldQuery(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig) : string
stringbuildFilterQuery(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig, array $arrParams) : string
arrayThe query parameters will get stored into this array.
stringThe combined WHERE conditions.buildSortingQuery(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig) : string
stringbuildWhereQuery(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig, array $arrParams) : string
arrayThe query parameters will get stored into this array.
stringThe combined WHERE clause (including the word "WHERE").calculateSubfilter(array $arrFilter, array $arrParams) : string
arrayThe filter to be combined to a valid SQL filter query.
arrayThe query parameters will get stored into this array.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If an invalid filter entry is encountered. |
|---|
stringThe combined WHERE conditions.convertModelToDataPropertyArray(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : array
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model to convert into an property array.
arraycreateModelFromDatabaseResult(\Database\Result $dbResult) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
getAndOrFilter(array $operation, array $params) : string
arrayThe operation to convert.
arrayThe parameter array for the resulting query.
stringgetFilterForComparingOperator(array $operation, array $params) : string
arrayThe operation to apply.
arrayThe parameters of the entire query.
stringgetFilterForInList(array $operation, array $params) : string
arrayThe operation to apply.
arrayThe parameters of the entire query.
stringgetFilterForLike(array $operation, array $params) : string
arrayThe operation to apply.
arrayThe parameters of the entire query.
stringinsertModelIntoDatabase(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
insertUndo(string $strSourceSQL, string $strSaveSQL, string $strTable) : void
stringThe SQL used to perform the action to be undone.
stringThe SQL query to retrieve the current entries.
stringThe table to be affected by the action.
updateModelInDatabase(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
$idGenerator : \ContaoCommunityAlliance\DcGeneral\Data\IdGeneratorInterface
$strSource : string
$timeStampProperty : string