InfoBoxRepositoryWriter

Implements \InfoBoxRepositoryWriterInterface

Class InfoBoxWriter

category

System

package

InfoBox

subpackage

Interfaces

Methods

Constructor of the class InfoBoxWriter.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Reactivates all messages.

reactivate() 

Updates a message status.

setStatus(\IdType $id, \StringType $status) 

Arguments

$id

\IdType

Message ID.

$status

\StringType

Message status to set.

Adds a new message.

write(\InfoBoxMessage $message) 

Arguments

$message

\InfoBoxMessage

Info box message to save.

Properties

Database connection.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Name of the table for the info box messages entries.

infoBoxTable : string
var

Type(s)

string

Name of the table for the info box description entries.

infoBoxTableDescription : string
var

Type(s)

string

Formatting pattern for date time values.

dateTimeFormat : string
var

Type(s)

string

Language provider.

languageProvider : \LanguageProvider
var

Type(s)

\LanguageProvider

Name of the ID column.

id_column : string
var

Type(s)

string

Info box item reactivation time limit.

reactivationTimeLimit : integer

Default value is 604800 which equals 1 week.

var

Type(s)

integer