Default implementation of a parent child relationship.
applyTo($objParent, $objChild)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
For invalid setters. |
|---|
copyFrom($sourceModel, $destinationModel)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
For invalid setters. |
|---|
getDestinationName()
getFilter($objParent)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
when an empty parent model is given. |
|---|
getFilterArray()
getInverseFilterArray()
getInverseFilterFor($objChild)
getSetters()
getSourceName()
matches($objParent, $objChild)
neededProperties()
parseFilter(array $filter, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : array
arrayThe filter rule to which the values shall get applied.
arraysetDestinationName($value)
setFilterArray($value)
setInverseFilterArray($value)
setSetters($value)
setSourceName($value)
prepareRule(array $rule, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $child) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\array.
arrayThe rule to prepare.
extractNeededProperties(array $rule) : array
arrayThe filter rule from which the properties shall be extracted from.
\RuntimeException |
When an unexpected filter rule is encountered. |
|---|
arrayisValidSetter(array $setter) : bool
arrayThe setter.
bool$destinationProvider : string
$filter : array
$inverseFilter : array
$setOn : array
$sourceProvider : string
$neededProperties : array