X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_base.phh;h=b79e176aa3c41242c23afff84369b456434d2b4f;hb=a14d9d7ed95e0ad85851e423d4d3295b00e35d2b;hp=d0ca39aaeba3b5942b53139c52f47f0766d9422c;hpb=d805fe6d9173d5de9a5a0e09e1a466f865b66017;p=brisk.git diff --git a/web/Obj/dbase_base.phh b/web/Obj/dbase_base.phh index d0ca39a..b79e176 100644 --- a/web/Obj/dbase_base.phh +++ b/web/Obj/dbase_base.phh @@ -33,8 +33,9 @@ class LoginDBItem { var $supp_comp; var $tos_vers; var $disa_reas; + var $guar_code; - function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $tos_vers, $disa_reas) + function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $tos_vers, $disa_reas, $guar_code) { $this->code = $code; $this->login = $login; @@ -45,13 +46,14 @@ class LoginDBItem { $this->supp_comp = $supp_comp; $this->tos_vers = $tos_vers; $this->disa_reas = $disa_reas; + $this->guar_code = $guar_code; } static function LoginDBItemFromRecord($rec) { $ret = new LoginDBItem($rec->code, $rec->login, $rec->pass, $rec->email, $rec->type, $rec->last_dona, - $rec->supp_comp, $rec->tos_vers, $rec->disa_reas); + $rec->supp_comp, $rec->tos_vers, $rec->disa_reas, $rec->guar_code); return ($ret); } @@ -112,7 +114,48 @@ class LoginDBItem { { $this->disa_reas = $disa_reas; } + function guar_code_get() + { + return $this->guar_code; + } } +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