SlideImageRepository

Implements \SlideImageRepositoryInterface

Class SliderRepository

category

System

package

Slider

subpackage

Repositories

Methods

SlideImageRepository constructor.

__construct(\SlideImageRepositoryWriterInterface $writer, \SlideImageRepositoryReaderInterface $reader, \SlideImageRepositoryDeleterInterface $deleter, \SlideImageAreaRepositoryInterface $slideImageAreaRepository) 

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

_getSlideImageAreaCollection(\IdType $slideImageId) : \SlideImageAreaCollection

Arguments

$slideImageId

\IdType

Response

\SlideImageAreaCollection

Deletes a SlideImage by the given slide image ID.

deleteSlideImageById(\IdType $slideImageId) : \SlideImageRepositoryInterface

Arguments

$slideImageId

\IdType

ID of the slide image to delete.

Response

\SlideImageRepositoryInterface

Same instance for method chaining.

Returns a SlideImage instance by the given slide image ID.

getById(\IdType $slideImageId) : \SlideImageInterface
Throws
\UnexpectedValueException
\InvalidArgumentException

If no slide image could be found by the provided ID.

Arguments

$slideImageId

\IdType

ID of the slide image to get.

Response

\SlideImageInterface

Returns a SlideImageCollection instance by the given slide ID.

getBySlideId(\IdType $slideId) : \SlideImageCollection

Arguments

$slideId

\IdType

ID of the slide to get.

Response

\SlideImageCollection

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

getBySlideIdAndLanguageId(\IdType $slideId, \IdType $languageId) : \SlideImageCollection
Throws
\UnexpectedValueException
\InvalidArgumentException

If no slide could be found by the provided slide ID.

Arguments

$slideId

\IdType

ID of the slide to receive the slide image collection from.

$languageId

\IdType

Language ID.

Response

\SlideImageCollection

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

Stores a SlideImage to the database.

store(\IdType $slideId, \SlideImageInterface $slideImage) : \SlideImageRepositoryInterface
Throws
\InvalidArgumentException

If no slider could be found by the given slide ID.

Arguments

$slideId

\IdType

ID of the Slide to to save the slide image to.

$slideImage

\SlideImageInterface

Slide image to save.

Response

\SlideImageRepositoryInterface

Same instance for method chaining.

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

unsetSlideImageReference(\FilenameStringType $filename) : \SlideImageRepositoryInterface

Arguments

$filename

\FilenameStringType

Slide image filename.

Response

\SlideImageRepositoryInterface

Same instance for method chaining.

Properties

writer

writer : \SlideImageRepositoryWriterInterface

reader

reader : \SlideImageRepositoryReaderInterface

deleter

deleter : \SlideImageRepositoryDeleterInterface

slideImageAreaRepository

slideImageAreaRepository : \SlideImageAreaRepositoryInterface