EmailWriter

Implements \EmailWriterInterface

Class EmailWriter

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

category

System

package

Email

subpackage

Repository

Methods

Class Constructor

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Inserts an email record to the database.

_insert(\EmailInterface $email) 

Arguments

$email

\EmailInterface

E-Mail.

Updates an email record from the database.

_update(\EmailInterface $email) 

Arguments

$email

\EmailInterface

E-Mail.

Writes email contacts and attachments.

_writeContactsAndAttachments(\EmailInterface $email) 

It will delete old records (if exist) and re-insert them so that the data state will represent the object state.

Arguments

$email

\EmailInterface

Contains the email information.

htmlentitiesWrapper

htmlentitiesWrapper( $string,  $flags = false,  $encoding = '',  $doubleEncode = true) 
inherited

Arguments

$string

$flags

$encoding

$doubleEncode

htmlEntityDecodeWrapper

htmlEntityDecodeWrapper( $string,  $flags = false,  $encoding = '') 
inherited

Arguments

$string

$flags

$encoding

Save (insert/update) an email record.

write(\EmailInterface $email) 

Arguments

$email

\EmailInterface

E-Mail.

Properties

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder