Class SliderReadService

Class SliderReadService

SliderReadService implements SliderReadServiceInterface
Package: Slider
Category: System
Located at Services/Core/Slider/SliderReadService.inc.php

Methods summary

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

SliderReadService constructor.

public getAllSlider( void ) : SliderCollection

Returns a SliderCollection with all existing Slider objects.

public getSliderById( IdType $sliderId ) : SliderInterface

Returns a Slider instance by the given slider ID.

public getSlideById( IdType $slideId ) : SlideInterface

Returns a Slide instance by the given slide ID.

public getSlideImageById( IdType $slideImageId ) : SlideImageInterface

Returns a SlideImage instance by the given slide image ID.

public getSlidesBySliderId( IdType $sliderId ) : SlideCollection

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

public getSlideImagesBySlideId( IdType $slideId ) : SlideImageCollection

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

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

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

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

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

public getSlideImageAreaById( IdType $slideImageAreaId ) : SlideImageAreaInterface

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

public getSlideImageAreasBySlideImageId( IdType $slideImageId ) : SlideImageAreaCollection

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

public getAllSlideImagesFromStorage( void ) : array

Returns all slide images from slide image file storage.

public getAllSlideThumbnailImagesFromStorage( void ) : array

Returns all slide thumbnail images from slide image file storage.

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

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

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

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

public getStartPageSlider( void ) : SliderInterface|null

Get the Slider for the start page.

public findAssignedSliderIdForCategoryId( IdType $categoryId ) : integer|null

Get the Slider ID for the provided category ID.

public findAssignedSliderIdForContentId( IdType $contentId ) : integer|null

Get the Slider ID for the provided content ID.

public findAssignedSliderIdForProductId( IdType $productId ) : integer|null

Get the Slider ID for the provided product ID.

Properties summary