X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_base.phh;h=d0ca39aaeba3b5942b53139c52f47f0766d9422c;hb=d805fe6d9173d5de9a5a0e09e1a466f865b66017;hp=097e6771f1b2469ab317a73ac22ce0156f91d03e;hpb=1e77a6539b5df73e362c36c11df1b0e3696c1647;p=brisk.git diff --git a/web/Obj/dbase_base.phh b/web/Obj/dbase_base.phh index 097e677..d0ca39a 100644 --- a/web/Obj/dbase_base.phh +++ b/web/Obj/dbase_base.phh @@ -2,7 +2,7 @@ /* * brisk - dbase_base.phh * - * Copyright (C) 2011 Matteo Nastasi + * Copyright (C) 2011-2012 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -29,56 +29,90 @@ class LoginDBItem { var $pass; var $email; var $type; + var $last_dona; + var $supp_comp; + var $tos_vers; + var $disa_reas; - function LoginDBItem($code, $login, $pass, $email, $type) + function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $tos_vers, $disa_reas) { - $this->code = $code; - $this->login = $login; - $this->pass = $pass; - $this->email = $email; - $this->type = $type; + $this->code = $code; + $this->login = $login; + $this->pass = $pass; + $this->email = $email; + $this->type = $type; + $this->last_dona = $last_dona; + $this->supp_comp = $supp_comp; + $this->tos_vers = $tos_vers; + $this->disa_reas = $disa_reas; } - static function &LoginDBItemFromRecord($rec) + static function LoginDBItemFromRecord($rec) { - $ret = & new LoginDBItem($rec->code, $rec->login, $rec->pass, - $rec->email, $rec->type); + $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); return ($ret); } - function codeget() + function code_get() { return $this->code; } - function loginget() + function login_get() { return $this->login; } - function passget() + function pass_get() { return $this->pass; } - function emailget() + function email_get() { return $this->email; } - function typeget() + function type_get() { return $this->type; } -} + function last_dona_get() + { + return $this->last_dona; + } + + function supp_comp_get() + { + return $this->supp_comp; + } + function supp_comp_set($supp_comp) + { + $this->supp_comp = $supp_comp; + } -class LoginDBItemOld extends LoginDBItem { - function LoginDBItemOld($login, $pass, $email, $type) + function tos_vers_get() { - parent::LoginDBItem(-1, $login, $pass, $email, $type); + return $this->tos_vers; } + function tos_vers_set($tos_vers) + { + $this->tos_vers = $tos_vers; + } + + function disa_reas_get() + { + return $this->disa_reas; + } + function disa_reas_set($disa_reas) + { + $this->disa_reas = $disa_reas; + } + } ?> \ No newline at end of file