diff options
author | emkael <emkael@tlen.pl> | 2016-11-03 23:14:58 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-11-03 23:14:58 +0100 |
commit | 94e03b260197122ae8f6d7dfedfb2a191fdae273 (patch) | |
tree | 068ce58e2ab24bf4f7c5d9158da7ae4585c66b58 /app/frontend | |
parent | d0dc1a56c91a6c257cb5c89286679952f7656ed9 (diff) |
* model for mail queue
Diffstat (limited to 'app/frontend')
-rw-r--r-- | app/frontend/model/MailQueue.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app/frontend/model/MailQueue.php b/app/frontend/model/MailQueue.php new file mode 100644 index 0000000..d7110f2 --- /dev/null +++ b/app/frontend/model/MailQueue.php @@ -0,0 +1,35 @@ +<?php + +Prado::using('Application.db.ActiveRecord'); + +class MailQueue extends ActiveRecord { + + const TABLE = 'mail_queue'; + + public $ID; + public $Subject; + public $HtmlBody; + public $TextBody; + public $RecipientName; + public $RecipientMail; + public $IsSent = FALSE; + public $SendAttempts = 0; + public $CreateTime; + public $LastAttemptTime; + + public static $COLUMN_MAPPING = [ + 'id' => 'ID', + 'subject' => 'Subject', + 'html_body' => 'HtmlBody', + 'text_body' => 'TextBody', + 'recipient_name' => 'RecipientName', + 'recipient_mail' => 'RecipientMail', + 'is_sent' => 'IsSent', + 'send_attempts' => 'SendAttempts', + 'create_time' => 'CreateTime', + 'last_attempt_time' => 'LastAttemptTime' + ]; + +} + +?> |