Class SliderRepositoryReader
Class SliderRepositoryReader
-
SliderRepositoryReader
implements
SliderRepositoryReaderInterface
Methods summary
public
|
#
__construct( CI_DB_query_builder $db )
SliderRepositoryReader constructor.
SliderRepositoryReader constructor.
Parameters
|
public
SliderInterface
|
#
getById( IdType $sliderId )
Returns a Slider instance by the given slider ID.
Returns a Slider instance by the given slider ID.
Parameters
Returns
Throws
UnexpectedValueException if no slider record for the provided slider ID was found.
Implementation of
|
public
SliderCollection
|
#
getAll( )
Returns a SliderCollection with all existing Slider objects.
Returns a SliderCollection with all existing Slider objects.
Returns
Implementation of
|
public
SliderInterface |null
|
#
getStartPageSlider( )
Get the Slider for the start page.
Get the Slider for the start page.
Returns
SliderInterface |null Returns the start page slider instance or null if no record was found.
Implementation of
|
protected
|
#
_setDbValues( Slider $slider, array $row )
Assign the Slider values via the setter.
Assign the Slider values via the setter.
Parameters
Throws
InvalidArgumentException If $row contains invalid values.
|
Properties summary
protected
string
|
$table
|
|
protected
CI_DB_query_builder
|
$db
|
|