DataObjects/Core_notify.php
[Pman.Core] / DataObjects / Core_notify.php
1 <?php
2 /**
3  *
4  * Table is designed to be used with a mailer to notify or issue
5  * emails (or maybe others later??)
6  *
7  *
8 CREATE TABLE  core_notify  (
9   `id` int(11)  NOT NULL AUTO_INCREMENT,
10   `act_when` DATETIME NOT NULL,
11   `onid` int(11)  NOT NULL DEFAULT 0,
12   `ontable` varchar(128)  NOT NULL DEFAULT '',
13   `person_id` int(11)  NOT NULL DEFAULT 0,
14   `msgid` varchar(128)  NOT NULL  DEFAULT '',
15   `sent` DATETIME  NOT NULL,
16   `bounced` int(4)  NOT NULL DEFAULT 0,
17   PRIMARY KEY (`id`),
18   INDEX `lookup`(`act_when`, `msgid`)
19 );
20 */
21  
22 require_once 'DB/DataObject.php';
23
24 class Pman_Core_DataObjects_Core_notify extends DB_DataObject 
25 {
26     ###START_AUTOCODE
27     /* the code below is auto generated do not remove the above tag */
28
29     
30     public $__table = 'core_nofity';         
31     public $act_when;                        
32     
33     public $ontable;                         
34     public $onid;                            
35     
36     public $person_id;                       
37     
38     public $msgid;   // message id after it has been sent.                          
39     public $sent;    // date it was sent.?? or last effort..
40     public $bounced; // 1 - failed to send (??) // 2 = we got a bounce.
41
42