Property | Type | Description | |
---|---|---|---|
$episode | Episode | ||
$messageData | array | ||
$messageTemplate | string | ||
$recipient | User | ||
$sender | User | ||
$type |
Method | Description | |
---|---|---|
__construct ( Episode $episode, User $sender, User $recipient, |
MessageCreator constructor. | |
emailAlert ( array $recipients, $subject, $content ) : mixed | Sends an email alert when a message is created | |
save ( $message = '', string $source = '' ) : |
||
setMessageData ( array $data ) | ||
setMessageTemplate ( $template ) |
Method | Description | |
---|---|---|
getEventType ( ) : CActiveRecord | ||
renderTemplate ( ) : string |
public __construct ( Episode $episode, User $sender, User $recipient, |
||
$episode | Episode | |
$sender | User | |
$recipient | User | |
$type |
public emailAlert ( array $recipients, $subject, $content ) : mixed | ||
$recipients | array | |
$subject | ||
$content | ||
return | mixed |