SliderReadServiceInterface
in
Interface SliderReadServiceInterface
Tags
Table of Contents
- findAssignedSliderIdForCategoryId() : int|null
- Get the Slider ID for the provided category ID.
- findAssignedSliderIdForContentId() : int|null
- Get the Slider ID for the provided content ID.
- findAssignedSliderIdForProductId() : int|null
- Get the Slider ID for the provided product ID.
- getAllSlider() : SliderCollection
- Returns a SliderCollection with all existing Slider objects.
- getSlideById() : SlideInterface
- Returns a Slide instance by the given slide ID.
- getSlideImageAreaById() : SlideImageAreaInterface
- Returns a SlideImageArea instance by the given slide image area ID.
- getSlideImageAreasBySlideImageId() : SlideImageAreaCollection
- Returns a SlideImageAreaCollection with all existing SlideImageArea objects by the given slide image ID.
- getSlideImageById() : SlideImageInterface
- Returns a SlideImage instance by the given slide image ID.
- getSlideImagesBySlideId() : SlideImageCollection
- Returns a SlideImageCollection with all existing SlideImage objects by the given slide ID.
- getSlideImagesBySlideIdAndLanguageId() : SlideImageCollection
- Returns a SlideImageCollection with all existing SlideImage objects by the given slide ID and language ID.
- getSliderById() : SliderInterface
- Returns a Slider instance by the given slider ID.
- getSlidesBySliderId() : SlideCollection
- Returns a SlideCollection with all existing Slide objects by the given slider ID.
- getSlidesBySliderIdAndLanguageId() : SlideCollection
- Returns a SlideCollection with all existing Slide objects by the given slider ID and language ID.
- getStartPageSlider() : SliderInterface|null
- Get the Slider for the start page.
- isSlideImageFileUsed() : bool
- Check if an image file is used by another slide image entry.
- isSlideThumbnailImageFileUsed() : bool
- Check if an image file is used by another slide entry.
Methods
findAssignedSliderIdForCategoryId()
Get the Slider ID for the provided category ID.
public
findAssignedSliderIdForCategoryId(IdType $categoryId) : int|null
Parameters
- $categoryId : IdType
Return values
int|null —Returns the ID of the slider which is assigned for the given category id or null if no record was found.
findAssignedSliderIdForContentId()
Get the Slider ID for the provided content ID.
public
findAssignedSliderIdForContentId(IdType $contentId) : int|null
Parameters
- $contentId : IdType
Return values
int|null —Returns the ID of the slider which is assigned for the given content id or null if no record was found.
findAssignedSliderIdForProductId()
Get the Slider ID for the provided product ID.
public
findAssignedSliderIdForProductId(IdType $productId) : int|null
Parameters
- $productId : IdType
Return values
int|null —Returns the ID of the slider which is assigned for the given product id or null if no record was found.
getAllSlider()
Returns a SliderCollection with all existing Slider objects.
public
getAllSlider() : SliderCollection
Return values
SliderCollection —getSlideById()
Returns a Slide instance by the given slide ID.
public
getSlideById(IdType $slideId) : SlideInterface
Parameters
- $slideId : IdType
Return values
SlideInterface —getSlideImageAreaById()
Returns a SlideImageArea instance by the given slide image area ID.
public
getSlideImageAreaById(IdType $slideImageAreaId) : SlideImageAreaInterface
Parameters
- $slideImageAreaId : IdType
Return values
SlideImageAreaInterface —getSlideImageAreasBySlideImageId()
Returns a SlideImageAreaCollection with all existing SlideImageArea objects by the given slide image ID.
public
getSlideImageAreasBySlideImageId(IdType $slideImageId) : SlideImageAreaCollection
Parameters
- $slideImageId : IdType
Return values
SlideImageAreaCollection —getSlideImageById()
Returns a SlideImage instance by the given slide image ID.
public
getSlideImageById(IdType $slideImageId) : SlideImageInterface
Parameters
- $slideImageId : IdType
Return values
SlideImageInterface —getSlideImagesBySlideId()
Returns a SlideImageCollection with all existing SlideImage objects by the given slide ID.
public
getSlideImagesBySlideId(IdType $slideId) : SlideImageCollection
Parameters
- $slideId : IdType
Return values
SlideImageCollection —getSlideImagesBySlideIdAndLanguageId()
Returns a SlideImageCollection with all existing SlideImage objects by the given slide ID and language ID.
public
getSlideImagesBySlideIdAndLanguageId(IdType $slideId, IdType $languageId) : SlideImageCollection
Parameters
Return values
SlideImageCollection —getSliderById()
Returns a Slider instance by the given slider ID.
public
getSliderById(IdType $sliderId) : SliderInterface
Parameters
- $sliderId : IdType
Return values
SliderInterface —getSlidesBySliderId()
Returns a SlideCollection with all existing Slide objects by the given slider ID.
public
getSlidesBySliderId(IdType $sliderId) : SlideCollection
Parameters
- $sliderId : IdType
Return values
SlideCollection —getSlidesBySliderIdAndLanguageId()
Returns a SlideCollection with all existing Slide objects by the given slider ID and language ID.
public
getSlidesBySliderIdAndLanguageId(IdType $sliderId, IdType $languageId) : SlideCollection
Parameters
Return values
SlideCollection —getStartPageSlider()
Get the Slider for the start page.
public
getStartPageSlider() : SliderInterface|null
Return values
SliderInterface|null —Returns the start page slider instance or null if no record was found.
isSlideImageFileUsed()
Check if an image file is used by another slide image entry.
public
isSlideImageFileUsed(FilenameStringType $filename, IdType $slideImageId) : bool
Parameters
- $filename : FilenameStringType
-
Slide image filename.
- $slideImageId : IdType
Return values
bool —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