SliderRepositoryReader

Implements \SliderRepositoryReaderInterface

Class SliderRepositoryReader

category

System

package

Slider

subpackage

Repositories

Methods

SliderRepositoryReader constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Assign the Slider values via the setter.

_setDbValues(\Slider $slider, array $row) 
Throws
\InvalidArgumentException

If $row contains invalid values.

Arguments

$slider

\Slider

$row

array

Returns a SliderCollection with all existing Slider objects.

getAll() : \SliderCollection

Returns a Slider instance by the given slider ID.

getById(\IdType $sliderId) : \SliderInterface
Throws
\UnexpectedValueException

if no slider record for the provided slider ID was found.

Arguments

$sliderId

\IdType

Response

\SliderInterface

Get the Slider for the start page.

getStartPageSlider() : \SliderInterface|null

Response

\SliderInterface|null

Returns the start page slider instance or null if no record was found.

Properties

Table name

table : string
var

Type(s)

string

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder