ArchivedEmailMatchingUtil Class Reference

Static Public Member Functions

static renderEmailMessageToMatchContent (EmailMessage $emailMessage, $user)
static resolveEmailAddressAndNameToContact (EmailMessage $emailMessage, $contact)
static resolveEmailAddressToContactIfEmailRelationAvailable (EmailMessage $emailMessage, $contact)
static resolveContactToSenderOrRecipient (EmailMessage $emailMessage, $contact)
static resolveFullNameToFirstAndLastName ($name, $contact)

Detailed Description

Helper class to work matching of archived emails

Definition at line 40 of file ArchivedEmailMatchingUtil.php.


Member Function Documentation

static renderEmailMessageToMatchContent ( EmailMessage emailMessage,
user 
) [static]
Returns:
string content
Parameters:
EmailMessage object $emailMessage
User object $user

Definition at line 47 of file ArchivedEmailMatchingUtil.php.

static resolveEmailAddressAndNameToContact ( EmailMessage emailMessage,
contact 
) [static]
Parameters:
EmailMessage object $emailMessage
User object $user

Definition at line 97 of file ArchivedEmailMatchingUtil.php.

static resolveEmailAddressToContactIfEmailRelationAvailable ( EmailMessage emailMessage,
contact 
) [static]
Parameters:
EmailMessage object $emailMessage
User object $user

Definition at line 122 of file ArchivedEmailMatchingUtil.php.

static resolveContactToSenderOrRecipient ( EmailMessage emailMessage,
contact 
) [static]
Parameters:
EmailMessage object $emailMessage
User object $user

Definition at line 169 of file ArchivedEmailMatchingUtil.php.

static resolveFullNameToFirstAndLastName ( name,
contact 
) [static]

Resolves full name with space in the middle to first and last name Removes excess white-space and cleans surrounding quotes left over from imap

Parameters:
Full name of a person/contact $name
Contact object $contact

Definition at line 196 of file ArchivedEmailMatchingUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Nov 16 07:10:49 2019