Skip to content
Snippets Groups Projects
Commit c1fc4d24 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Adding notification email field

parent b32c33e5
No related branches found
No related tags found
1 merge request!1Feature sg mail
......@@ -53,5 +53,93 @@ class Mail extends AbstractEntity {
* @var $mailContent
*/
protected $scheduledTime = NULL;
/**
* @var $notificationEmail
*/
protected $notificationEmail = NULL;
/**
* @return mixed
*/
public function getMailContent() {
return $this->mailContent;
}
/**
* @param mixed $mailContent
*/
public function setMailContent($mailContent) {
$this->mailContent = $mailContent;
}
/**
* @return mixed
*/
public function getToAddress() {
return $this->toAddress;
}
/**
* @param mixed $toAddress
*/
public function setToAddress($toAddress) {
$this->toAddress = $toAddress;
}
/**
* @return mixed
*/
public function getFromAddress() {
return $this->fromAddress;
}
/**
* @param mixed $fromAddress
*/
public function setFromAddress($fromAddress) {
$this->fromAddress = $fromAddress;
}
/**
* @return mixed
*/
public function getIsSent() {
return $this->isSent;
}
/**
* @param mixed $isSent
*/
public function setIsSent($isSent) {
$this->isSent = $isSent;
}
/**
* @return mixed
*/
public function getScheduledTime() {
return $this->scheduledTime;
}
/**
* @param mixed $scheduledTime
*/
public function setScheduledTime($scheduledTime) {
$this->scheduledTime = $scheduledTime;
}
/**
* @return mixed
*/
public function getNotificationEmail() {
return $this->notificationEmail;
}
/**
* @param mixed $notificationEmail
*/
public function setNotificationEmail($notificationEmail) {
$this->notificationEmail = $notificationEmail;
}
}
......@@ -9,6 +9,7 @@ CREATE TABLE sg_mail_domain_model_mail (
mail_content varchar(255) DEFAULT '' NOT NULL,
to_address varchar(255) DEFAULT '' NOT NULL,
from_address varchar(255) DEFAULT '' NOT NULL,
notification_email varchar(255) DEFAULT '' NOT NULL,
is_sent boolean DEFAULT FALSE NOT NULL,
scheduled_time int(11) unsigned DEFAULT '0' NOT NULL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment