EmailDeleter

Implements \EmailDeleterInterface

Class EmailDeleter

Deletes email records from the database.

category

System

package

Email

subpackage

Repository

Methods

Class Constructor

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Removes a record from the database.

delete(\EmailInterface $email) 

This method will delete all the email relevant entities from the database. It will not throw an exception if the given record is not found.

Arguments

$email

\EmailInterface

E-Mail.

Removes all emails from the data base that have the given email address as sender or recipient.

deleteEmailsByEmailAddress(\CustomerEmail $email) 

Arguments

$email

\CustomerEmail

E-Mail address.

Removes all emails from the database that have creation date below the give date.

deleteOldEmailsByDate(\DateTime $date) 

Arguments

$date

\DateTime

Properties

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder