summaryrefslogtreecommitdiff
path: root/app/frontend/model/MailQueue.php
blob: 9a42e05bc6be04fac37cc3aedcde3cc36727da6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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 $LastErrorInfo;

    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',
        'last_error_info' => 'LastErrorInfo'
    ];

}

?>