Class InfoBoxRepositoryWriter

Class InfoBoxWriter

InfoBoxRepositoryWriter implements InfoBoxRepositoryWriterInterface

Methods summary

public __construct( CI_DB_query_builder $db )

Constructor of the class InfoBoxWriter.

public write( InfoBoxMessage $message )

Adds a new message.

public reactivate( void )

Reactivates all messages.

public setStatus( IdType $id, StringType $status )

Updates a message status.

Properties summary

protected $db : CI_DB_query_builder

Database connection.


		
protected $infoBoxTable : string

Name of the table for the info box messages entries.

'infobox_messages'
protected $infoBoxTableDescription : string

Name of the table for the info box description entries.

'infobox_messages_description'
protected $dateTimeFormat : string

Formatting pattern for date time values.

'Y-m-d H:i:s'
protected $languageProvider : LanguageProvider

Language provider.


		
protected $id_column : string

Name of the ID column.

'infobox_messages_id'
protected $reactivationTimeLimit : integer

Info box item reactivation time limit.

604800