SlideRepositoryWriter

Implements \SlideRepositoryWriterInterface

Class SlideRepositoryWriter

category

System

package

Slider

subpackage

Repositories

Methods

SlideRepositoryWriter constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Inserts a slide to the database.

store(\IdType $sliderId, \SlideInterface $slide) : integer

Arguments

$sliderId

\IdType

Response

integer

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

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

unsetSlideThumbnailReference(\FilenameStringType $filename) : \SlideRepositoryWriterInterface

Arguments

$filename

\FilenameStringType

Slide image filename.

Response

\SlideRepositoryWriterInterface

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