Class EmailWriter

Class EmailWriter

Writes email records in the database (insert/update operations).

EmailWriter implements EmailWriterInterface uses HtmlUtilityTrait

Methods summary

public __construct( CI_DB_query_builder $db )

Class Constructor

public write( EmailInterface $email )

Save (insert/update) an email record.

protected _insert( EmailInterface $email )

Inserts an email record to the database.

protected _update( EmailInterface $email )

Updates an email record from the database.

protected _writeContactsAndAttachments( EmailInterface $email )

Writes email contacts and attachments.

Methods used from HtmlUtilityTrait

htmlEntityDecodeWrapper(), htmlentitiesWrapper()

Properties summary

protected $db : CI_DB_query_builder

Query builder.