SlideImageRepositoryReader

Implements \SlideImageRepositoryReaderInterface

Class SlideImageRepositoryReader

category

System

package

Slider

subpackage

Repositories

Methods

SlideImageRepositoryReader constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Assign the SlideImage values via the setter.

_setDbValues(\SlideImage $slideImage, array $row) 
Throws
\InvalidArgumentException

If $row contains invalid values.

Arguments

$slideImage

\SlideImage

$row

array

Returns a SlideImage for the given SlideImage ID.

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

Arguments

$slideImageId

\IdType

Response

\SlideImageInterface

Returns a SlideImageCollection for the given Slide ID.

getBySlideId(\IdType $slideId) : \SlideImageCollection
Throws
\UnexpectedValueException

if no slide image record for the provided slide ID was found.

Arguments

$slideId

\IdType

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
\InvalidArgumentException
\UnexpectedValueException

Arguments

$slideId

\IdType

$languageId

\IdType

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

Properties

Table name

table : string
var

Type(s)

string

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder