SlideRepository

Implements \SlideRepositoryInterface

Class SliderRepository

category

System

package

Slider

subpackage

Repositories

Methods

SlideRepository constructor.

__construct(\SlideRepositoryWriterInterface $writer, \SlideRepositoryReaderInterface $reader, \SlideRepositoryDeleterInterface $deleter, \SlideImageRepositoryInterface $slideImageRepository) 

Returns a SlideImageCollection with all existing SlideImage objects by the given slide ID.

_getSlideImageCollection(\IdType $slideId) : \SlideImageCollection

Arguments

$slideId

\IdType

Response

\SlideImageCollection

Deletes a Slide by the given slide ID.

deleteSlideById(\IdType $slideId) : \SlideRepositoryInterface

Arguments

$slideId

\IdType

Response

\SlideRepositoryInterface

Same instance for method chaining.

Returns a Slide instance by the given slide ID.

getById(\IdType $slideId) : \SlideInterface

Arguments

$slideId

\IdType

Response

\SlideInterface

Returns a SlideCollection instance by the given slider ID.

getBySliderId(\IdType $sliderId) : \SlideCollection

Arguments

$sliderId

\IdType

Response

\SlideCollection

Returns a SlideCollection with all existing Slide objects by the given slider ID and language ID.

getBySliderIdAndLanguageId(\IdType $sliderId, \IdType $languageId) : \SlideCollection

Arguments

$sliderId

\IdType

$languageId

\IdType

Response

\SlideCollection

Check if an image file is used by another slide entry.

isSlideThumbnailImageFileUsed(\FilenameStringType $filename, \IdType $slideId) : boolean

Arguments

$filename

\FilenameStringType

Slide thumbnail image filename.

$slideId

\IdType

Response

boolean

Stores a Slide to the database.

store(\IdType $sliderId, \SlideInterface $slide) : \SlideRepositoryInterface

Arguments

$sliderId

\IdType

Response

\SlideRepositoryInterface

Same instance for method chaining.

Unset the thumbnail filename references in other slide thumbnail entry by the given filename.

unsetSlideThumbnailReference(\FilenameStringType $filename) : \SlideRepositoryInterface

Arguments

$filename

\FilenameStringType

Slide image filename.

Response

\SlideRepositoryInterface

Same instance for method chaining.

Properties

writer

writer : \SlideRepositoryWriterInterface

reader

reader : \SlideRepositoryReaderInterface

deleter

deleter : \SlideRepositoryDeleterInterface

slideImageRepository

slideImageRepository : \SlideImageRepositoryInterface