category
|
System
|
package
|
Slider
|
subpackage
|
Repositories
|
Methods
SlideRepositoryReader constructor.
__construct(\CI_DB_query_builder $db)
Assign the slide values via the setters.
_setDbValues(\Slide $slide, array $row)
|
|
Throws |
- \InvalidArgumentException
If $row contains invalid values.
|
Arguments
$row
array
Fetched DB row.
Returns a Slide instance by the given slide ID.
getById(\IdType $slideId) : \SlideInterface
Throws |
- \InvalidArgumentException
- \UnexpectedValueException
|
Arguments
Response
\SlideInterface
Returns a SlideCollection for the given Slider ID.
getBySliderId(\IdType $sliderId) : \SlideCollection
Throws |
- \InvalidArgumentException
- \UnexpectedValueException
|
Arguments
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 |
- \InvalidArgumentException
- \UnexpectedValueException
|
Arguments
Response
\SlideCollection
Check if an image file is used by another slide entry.
isSlideThumbnailImageFileUsed(\FilenameStringType $filename, \IdType $slideId) : boolean
Arguments
Response
boolean
Properties
Table name
table : string
Query builder.
db : \CI_DB_query_builder
Type(s)
\CI_DB_query_builder