SlideImageRepositoryWriter

Implements \SlideImageRepositoryWriterInterface

Class SlideImageRepositoryWriter

category

System

package

Slider

subpackage

Repositories

Methods

SlideImageRepositoryWriter constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Inserts a slide image to the database.

store(\IdType $slideId, \SlideImageInterface $slideImage) : integer

Arguments

$slideId

\IdType

$slideImage

\SlideImageInterface

Response

integer

ID of inserted slide or the given slide ID if the slide had an ID already.

Unset the image filename references in other slide image entry by the given filename.

unsetSlideImageReference(\FilenameStringType $filename) : \SlideImageRepositoryWriterInterface

Arguments

$filename

\FilenameStringType

Slide image filename.

Response

\SlideImageRepositoryWriterInterface

Same instance for method chaining.

Properties

Table name

table : string
var

Type(s)

string

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder