SlideRepositoryReader

Implements \SlideRepositoryReaderInterface

Class SlideRepositoryReader

category

System

package

Slider

subpackage

Repositories

Methods

SlideRepositoryReader constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Assign the slide values via the setters.

_setDbValues(\Slide $slide, array $row) 
Throws
\InvalidArgumentException

If $row contains invalid values.

Arguments

$slide

\Slide

Slide object.

$row

array

Fetched DB row.

Returns a Slide instance by the given slide ID.

getById(\IdType $slideId) : \SlideInterface
Throws
\UnexpectedValueException
\InvalidArgumentException

Arguments

$slideId

\IdType

Response

\SlideInterface

Returns a SlideCollection for the given Slider ID.

getBySliderId(\IdType $sliderId) : \SlideCollection
Throws
\UnexpectedValueException
\InvalidArgumentException

Arguments

$sliderId

\IdType

Response

\SlideCollection

All slides found by the slider ID as a SlideCollection.

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

getBySliderIdAndLanguageId(\IdType $sliderId, \IdType $languageId) : \SlideCollection
Throws
\UnexpectedValueException
\InvalidArgumentException

Arguments

$sliderId

\IdType

$languageId

\IdType

Response

\SlideCollection

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

Table name

table : string
var

Type(s)

string

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder