summaryrefslogtreecommitdiff
path: root/app/frontend/model
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/model')
-rw-r--r--app/frontend/model/MailQueue.php35
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'
+ ];
+
+}
+
+?>