Methods summary
public
DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
|
#
setFilterArray( array $value )
Set the condition as filter.
Set the condition as filter.
Parameters
- $value
array $value The filter rules describing the relationship.
Returns
Implementation of
|
public
array
|
#
getFilterArray( )
Get the condition as filter.
Get the condition as filter.
Returns
array
Implementation of
|
public
DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
|
#
setSetters( array $value )
Set the condition setters.
Set the condition setters.
Parameters
- $value
array $value The values to be applied to a model when it shall get set as child of
another one.
Returns
Implementation of
|
public
array
|
#
getSetters( )
Get the condition setters.
Get the condition setters.
Returns
array
Implementation of
|
public
DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
|
#
setInverseFilterArray( array $value )
Set the inverse filter for the condition.
Set the inverse filter for the condition.
Parameters
- $value
array $value The filter rules to use when inverting the condition to look up the
parent.
Returns
Implementation of
|
public
array
|
#
getInverseFilterArray( )
Get the inverse filter for the condition.
Get the inverse filter for the condition.
Returns
array
Implementation of
|
public
DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
|
#
setSourceName( string $value )
Set the name of the source provider.
Set the name of the source provider.
Parameters
- $value
string $value The name of the provider.
Returns
Implementation of
|
public
string
|
#
getSourceName( )
Return the name of the source provider (parent).
Return the name of the source provider (parent).
Returns
string
Implementation of
|
public
DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
|
#
setDestinationName( string $value )
Set the name of the destination provider (child).
Set the name of the destination provider (child).
Parameters
- $value
string $value The name of the provider.
Returns
Implementation of
|
public
string
|
#
getDestinationName( )
Return the name of the destination provider.
Return the name of the destination provider.
Returns
string
Implementation of
|
public
array
|
#
getFilter( ModelInterface $objParent )
Get the condition as filter related to the given model.
Get the condition as filter related to the given model.
Parameters
- $objParent
ModelInterface $objParent The model that shall get used as parent.
Returns
array
Throws
Implementation of
|
public
|
#
applyTo( ModelInterface $objParent, ModelInterface $objChild )
Apply a condition to a child.
Apply a condition to a child.
Parameters
- $objParent
ModelInterface $objParent The parent object.
- $objChild
ModelInterface $objChild The object on which the condition shall be enforced on.
Throws
Implementation of
|
public
|
#
copyFrom( ModelInterface $sourceModel, ModelInterface $destinationModel )
Apply a condition to a child by copying it from another child.
Apply a condition to a child by copying it from another child.
Parameters
- $sourceModel
ModelInterface $sourceModel The sibling model.
- $destinationModel
ModelInterface $destinationModel The model on which the condition shall be enforced on.
Throws
Implementation of
|
public
array|null
|
#
getInverseFilterFor( ModelInterface $objChild )
Get the inverted condition as filter.
Get the inverted condition as filter.
Parameters
- $objChild
ModelInterface $objChild The model that shall get used as child and for which the parent filter
shall get retrieved.
Returns
array|null
Implementation of
|
public
boolean
|
#
matches( ModelInterface $objParent, ModelInterface $objChild )
Test if the given parent is indeed a parent of the given child object for
this condition.
Test if the given parent is indeed a parent of the given child object for
this condition.
Parameters
- $objParent
ModelInterface $objParent The parent model.
- $objChild
ModelInterface $objChild The child model.
Returns
boolean
Implementation of
|