X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_base.phh;h=b79e176aa3c41242c23afff84369b456434d2b4f;hb=a14d9d7ed95e0ad85851e423d4d3295b00e35d2b;hp=d5873525263562052cf4e9d453504bc50e883a5d;hpb=ea90fe3a8a0952838a454d3613952597b1e58959;p=brisk.git diff --git a/web/Obj/dbase_base.phh b/web/Obj/dbase_base.phh index d587352..b79e176 100644 --- a/web/Obj/dbase_base.phh +++ b/web/Obj/dbase_base.phh @@ -121,4 +121,41 @@ class LoginDBItem { } +define('MAIL_TYP_CHECK', 1); + +class MailDBItem { + var $code; + var $ucode; + var $type; + var $tstamp; + var $subj; + var $body_txt; + var $body_htm; + var $hash; + + function MailDBItem($code, $ucode, $type, $tstamp, $subj, $body_txt, $body_htm, $hash=NULL) + { + $this->code = $code; + $this->ucode = $ucode; + $this->type = $type; + $this->tstamp = $tstamp; + $this->subj = $subj; + $this->body_txt = $body_txt; + $this->body_htm = $body_htm; + $this->hash = $hash; + } + + static function MailDBItemFromRecord($rec) + { + $ret = new MailDBItem($rec->code, $rec->ucode, $rec->type, $rec->tstamp, $rec->subj, + $rec->body_txt, $rec->body_htm, $rec->hash); + + return ($ret); + } + + function store($bdb) + { + return $bdb->mail_add_fromitem($this); + } +} ?> \ No newline at end of file