SlideRepositoryInterface
in
Interface SlideRepositoryInterface
Tags
Table of Contents
- deleteSlideById() : SlideRepositoryInterface
- Deletes a Slide by the given slide ID.
- getById() : SlideInterface
- Returns a Slide instance by the given slide ID.
- getBySliderId() : SlideCollection
- Returns a SlideCollection instance by the given slider ID.
- getBySliderIdAndLanguageId() : SlideCollection
- Returns a SlideCollection with all existing Slide objects by the given slider ID and language ID.
- isSlideThumbnailImageFileUsed() : bool
- Check if an image file is used by another slide entry.
- store() : SlideRepositoryInterface
- Stores a Slide to the database.
- unsetSlideThumbnailReference() : SlideRepositoryInterface
- Unset the thumbnail filename references in other slide thumbnail entry by the given filename.
Methods
deleteSlideById()
Deletes a Slide by the given slide ID.
public
deleteSlideById(IdType $slideId) : SlideRepositoryInterface
Parameters
- $slideId : IdType
Return values
SlideRepositoryInterface —Same instance for method chaining.
getById()
Returns a Slide instance by the given slide ID.
public
getById(IdType $slideId) : SlideInterface
Parameters
- $slideId : IdType
Return values
SlideInterface —getBySliderId()
Returns a SlideCollection instance by the given slider ID.
public
getBySliderId(IdType $sliderId) : SlideCollection
Parameters
- $sliderId : IdType
Return values
SlideCollection —getBySliderIdAndLanguageId()
Returns a SlideCollection with all existing Slide objects by the given slider ID and language ID.
public
getBySliderIdAndLanguageId(IdType $sliderId, IdType $languageId) : SlideCollection
Parameters
Return values
SlideCollection —isSlideThumbnailImageFileUsed()
Check if an image file is used by another slide entry.
public
isSlideThumbnailImageFileUsed(FilenameStringType $filename, IdType $slideId) : bool
Parameters
- $filename : FilenameStringType
-
Slide thumbnail image filename.
- $slideId : IdType
Return values
bool —store()
Stores a Slide to the database.
public
store(IdType $sliderId, SlideInterface $slide) : SlideRepositoryInterface
Parameters
- $sliderId : IdType
- $slide : SlideInterface
Return values
SlideRepositoryInterface —Same instance for method chaining.
unsetSlideThumbnailReference()
Unset the thumbnail filename references in other slide thumbnail entry by the given filename.
public
unsetSlideThumbnailReference(FilenameStringType $filename) : SlideRepositoryInterface
Parameters
- $filename : FilenameStringType
-
Slide image filename.
Return values
SlideRepositoryInterface —Same instance for method chaining.