SliderRepositoryWriter

Implements \SliderRepositoryWriterInterface

Class SliderRepositoryWriter

category

System

package

Slider

subpackage

Repositories

Methods

SliderRepositoryWriter constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Set the Slider for the start page.

setStartPageSlider(\IdType $sliderId) : \SliderRepositoryWriterInterface

Arguments

$sliderId

\IdType

Response

\SliderRepositoryWriterInterface

Same instance for method chaining.

Inserts a slider to the database.

store(\SliderInterface $slider) : integer

Arguments

Response

integer

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

Properties

Table name

table : string
var

Type(s)

string

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder