SliderAssignmentRepositoryInterface
in
Interface SliderAssignmentRepositoryInterface
Tags
Table of Contents
- deleteByEntityTypeAndEntityId() : SliderAssignmentRepositoryInterface
- Deletes a slider assignment by the given entity type and entity ID.
- deleteBySliderId() : SliderAssignmentRepositoryInterface
- Deletes all slider assignments by the given slider ID.
- findAssignedSliderIdForEntityTypeAndEntityId() : int|null
- Get the Slider ID for the provided entity type (category, content, product) and entity ID.
- store() : SliderAssignmentRepositoryInterface
- Inserts a slider assignment into the database.
Methods
deleteByEntityTypeAndEntityId()
Deletes a slider assignment by the given entity type and entity ID.
public
deleteByEntityTypeAndEntityId(NonEmptyStringType $entityType, IdType $entityId) : SliderAssignmentRepositoryInterface
Parameters
- $entityType : NonEmptyStringType
- $entityId : IdType
Return values
SliderAssignmentRepositoryInterface —Same instance for method chaining.
deleteBySliderId()
Deletes all slider assignments by the given slider ID.
public
deleteBySliderId(IdType $sliderId) : SliderAssignmentRepositoryInterface
Parameters
- $sliderId : IdType
Return values
SliderAssignmentRepositoryInterface —Same instance for method chaining.
findAssignedSliderIdForEntityTypeAndEntityId()
Get the Slider ID for the provided entity type (category, content, product) and entity ID.
public
findAssignedSliderIdForEntityTypeAndEntityId(NonEmptyStringType $entityType, IdType $entityId) : int|null
Parameters
- $entityType : NonEmptyStringType
- $entityId : IdType
Return values
int|null —Returns the ID of the slider which is assigned for the given entity id or null if no record was found.
store()
Inserts a slider assignment into the database.
public
store(IdType $sliderId, NonEmptyStringType $entityType, IdType $entityId) : SliderAssignmentRepositoryInterface
Parameters
- $sliderId : IdType
- $entityType : NonEmptyStringType
- $entityId : IdType
Return values
SliderAssignmentRepositoryInterface —Same instance for method chaining.