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
mixed
The ID of the row.
mixed
The 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
string
null
getVersion($mixID, $mixVersion)
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($strField, $varNew, $intId)
resetFallback($strField)
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)
saveEach(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $objItems)
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)
\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
boolean
The property name or empty to clear.
setVersionActive(mixed $mixID, mixed $mixVersion) : void
mixed
The ID of the row.
mixed
The version number to set active.
buildFieldQuery(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig) : string
string
buildFilterQuery(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig, array $arrParams) : string
array
The query parameters will get stored into this array.
string
The combined WHERE conditions.buildSortingQuery(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig) : string
string
buildWhereQuery(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $objConfig, array $arrParams) : string
array
The query parameters will get stored into this array.
string
The combined WHERE clause (including the word "WHERE").calculateSubfilter(array $arrFilter, array $arrParams) : string
array
The filter to be combined to a valid SQL filter query.
array
The query parameters will get stored into this array.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If an invalid filter entry is encountered. |
---|
string
The combined WHERE conditions.convertModelToDataPropertyArray(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : array
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model to convert into an property array.
array
createModelFromDatabaseResult(\Database\Result $dbResult) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
getAndOrFilter(array $operation, array $params) : string
array
The operation to convert.
array
The parameter array for the resulting query.
string
getFilterForComparingOperator(array $operation, array $params) : string
array
The operation to apply.
array
The parameters of the entire query.
string
getFilterForInList(array $operation, array $params) : string
array
The operation to apply.
array
The parameters of the entire query.
string
getFilterForLike(array $operation, array $params) : string
array
The operation to apply.
array
The parameters of the entire query.
string
insertModelIntoDatabase(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
insertUndo(string $strSourceSQL, string $strSaveSQL, string $strTable) : void
string
The SQL used to perform the action to be undone.
string
The SQL query to retrieve the current entries.
string
The table to be affected by the action.
updateModelInDatabase(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : void
$idGenerator : \ContaoCommunityAlliance\DcGeneral\Data\IdGeneratorInterface
$strSource : string
$timeStampProperty : string