SliderReadService

Implements \SliderReadServiceInterface

Class SliderReadService

category

System

package

Slider

Methods

SliderReadService constructor.

__construct(\SliderRepositoryInterface $sliderRepository, \SlideRepositoryInterface $slideRepository, \SlideImageRepositoryInterface $slideImageRepository, \SlideImageAreaRepositoryInterface $slideImageAreaRepository, \SliderAssignmentRepositoryInterface $sliderAssignmentRepository, \SlideImageFileStorage $slideImageFileStorage) 

Arguments

$sliderRepository

\SliderRepositoryInterface

$slideRepository

\SlideRepositoryInterface

$slideImageRepository

\SlideImageRepositoryInterface

$slideImageAreaRepository

\SlideImageAreaRepositoryInterface

$sliderAssignmentRepository

\SliderAssignmentRepositoryInterface

$slideImageFileStorage

\SlideImageFileStorage

Get the Slider ID for the provided category ID.

findAssignedSliderIdForCategoryId(\IdType $categoryId) : integer|null

Arguments

$categoryId

\IdType

Response

integer|null

Returns the ID of the slider which is assigned for the given category id or null if no record was found.

Get the Slider ID for the provided content ID.

findAssignedSliderIdForContentId(\IdType $contentId) : integer|null

Arguments

$contentId

\IdType

Response

integer|null

Returns the ID of the slider which is assigned for the given content id or null if no record was found.

Get the Slider ID for the provided product ID.

findAssignedSliderIdForProductId(\IdType $productId) : integer|null

Arguments

$productId

\IdType

Response

integer|null

Returns the ID of the slider which is assigned for the given product id or null if no record was found.

Returns all slide images from slide image file storage.

getAllSlideImagesFromStorage() : array

Response

array

Slide images.

Returns a SliderCollection with all existing Slider objects.

getAllSlider() : \SliderCollection

Returns all slide thumbnail images from slide image file storage.

getAllSlideThumbnailImagesFromStorage() : array

Response

array

Slide thumbnail images.

Returns a Slide instance by the given slide ID.

getSlideById(\IdType $slideId) : \SlideInterface

Arguments

$slideId

\IdType

Response

\SlideInterface

Returns a SlideImageArea instance by the given slide image area ID.

getSlideImageAreaById(\IdType $slideImageAreaId) : \SlideImageAreaInterface

Arguments

$slideImageAreaId

\IdType

Response

\SlideImageAreaInterface

Returns a SlideImageAreaCollection with all existing SlideImageArea objects by the given slide image ID.

getSlideImageAreasBySlideImageId(\IdType $slideImageId) : \SlideImageAreaCollection

Arguments

$slideImageId

\IdType

Response

\SlideImageAreaCollection

Returns a SlideImage instance by the given slide image ID.

getSlideImageById(\IdType $slideImageId) : \SlideImageInterface

Arguments

$slideImageId

\IdType

Response

\SlideImageInterface

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

getSlideImagesBySlideId(\IdType $slideId) : \SlideImageCollection

Arguments

$slideId

\IdType

Response

\SlideImageCollection

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

getSlideImagesBySlideIdAndLanguageId(\IdType $slideId, \IdType $languageId) : \SlideImageCollection

Arguments

$slideId

\IdType

$languageId

\IdType

Response

\SlideImageCollection

Returns a Slider instance by the given slider ID.

getSliderById(\IdType $sliderId) : \SliderInterface

Arguments

$sliderId

\IdType

Response

\SliderInterface

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

getSlidesBySliderId(\IdType $sliderId) : \SlideCollection

Arguments

$sliderId

\IdType

Response

\SlideCollection

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

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

Arguments

$sliderId

\IdType

$languageId

\IdType

Response

\SlideCollection

Get the Slider for the start page.

getStartPageSlider() : \SliderInterface|null

Response

\SliderInterface|null

Returns the start page slider instance or null if no record was found.

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

isSlideImageFileUsed(\FilenameStringType $filename, \IdType $slideImageId) : boolean

Arguments

$filename

\FilenameStringType

Slide image filename.

$slideImageId

\IdType

Response

boolean

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

Properties

sliderRepository

sliderRepository : \SliderRepositoryInterface

slideRepository

slideRepository : \SlideRepositoryInterface

slideImageRepository

slideImageRepository : \SlideImageRepositoryInterface

slideImageAreaRepository

slideImageAreaRepository : \SlideImageAreaRepositoryInterface

sliderAssignmentRepository

sliderAssignmentRepository : \SliderAssignmentRepositoryInterface

slideImageFileStorage

slideImageFileStorage : \SlideImageFileStorage