Class EmailRepository
Class EmailRepository
Handles the database operations that concern the email records of the database. It provides a layer for more complicated methods that use the writer, reader and deleter.
- EmailRepository implements EmailRepositoryInterface
Package: Email\Repository
Category: System
Located at Services/System/Email/Repositories/EmailRepository.inc.php
Category: System
Located at Services/System/Email/Repositories/EmailRepository.inc.php
Methods summary
public
__construct( EmailWriterInterface $writer, EmailReaderInterface $reader, EmailDeleterInterface $deleter )
Class Constructor
public
delete( EmailInterface $email )
Removes all information of an email record from the database.
public
filter( string $p_keyword, array $limit = array(), array $order = array() )
: EmailCollection
Filter email records with provided keyword string.
public
getRecordCount( string $p_filterKeyword = '' )
: integer
Get the current count of the email records in the database.
public
deleteEmailsByEmailAddress( CustomerEmail $email )
Removes all emails from the data base that have the given email address as sender or recipient.
public
getEmailsByEmailAddress( CustomerEmail $email )
: EmailCollection
Gets all emails from the data base that have the given email address as sender or recipient.