Class SlideRepository
Class SliderRepository
- SlideRepository implements SlideRepositoryInterface
Package: Slider\Repositories
Category: System
Located at Services/Core/Slider/Repositories/SlideRepository.inc.php
Category: System
Located at Services/Core/Slider/Repositories/SlideRepository.inc.php
Methods summary
public
__construct( SlideRepositoryWriterInterface $writer, SlideRepositoryReaderInterface $reader, SlideRepositoryDeleterInterface $deleter, SlideImageRepositoryInterface $slideImageRepository )
SlideRepository constructor.
public
getBySliderId( IdType $sliderId )
: SlideCollection
Returns a SlideCollection instance by the given slider ID.
public
getBySliderIdAndLanguageId( IdType $sliderId, IdType $languageId )
: SlideCollection
Returns a SlideCollection with all existing Slide objects by the given slider ID and language ID.
public
store( IdType $sliderId, SlideInterface $slide )
: SlideRepositoryInterface
Stores a Slide to the database.
public
deleteSlideById( IdType $slideId )
: SlideRepositoryInterface
Deletes a Slide by the given slide ID.
public
isSlideThumbnailImageFileUsed( FilenameStringType $filename, IdType $slideId )
: boolean
Check if an image file is used by another slide entry.
public
unsetSlideThumbnailReference( FilenameStringType $filename )
: SlideRepositoryInterface
Unset the thumbnail filename references in other slide thumbnail entry by the given filename.
protected
_getSlideImageCollection( IdType $slideId )
: SlideImageCollection
Returns a SlideImageCollection with all existing SlideImage objects by the given slide ID.