3 * brisk - dbase_base.phh
5 * Copyright (C) 2011-2012 Matteo Nastasi
6 * mailto: nastasi@alternativeoutput.it
7 * matteo.nastasi@milug.org
8 * web: http://www.alternativeoutput.it
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details. You should have received a
19 * copy of the GNU General Public License along with this program; if
20 * not, write to the Free Software Foundation, Inc, 59 Temple Place -
21 * Suite 330, Boston, MA 02111-1307, USA.
37 function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $lice_vers, $disa_reas)
40 $this->login = $login;
42 $this->email = $email;
44 $this->last_dona = $last_dona;
45 $this->supp_comp = $supp_comp;
46 $this->lice_vers = $lice_vers;
47 $this->disa_reas = $disa_reas;
50 static function LoginDBItemFromRecord($rec)
52 $ret = new LoginDBItem($rec->code, $rec->login, $rec->pass,
53 $rec->email, $rec->type, $rec->last_dona,
54 $rec->supp_comp, $rec->lice_vers, $rec->disa_reas);
84 function last_dona_get()
86 return $this->last_dona;
89 function supp_comp_get()
91 return $this->supp_comp;
93 function supp_comp_set($supp_comp)
95 $this->supp_comp = $supp_comp;
98 function lice_vers_get()
100 return $this->lice_vers;
102 function lice_vers_set($lice_vers)
104 $this->lice_vers = $lice_vers;
107 function disa_reas_get()
109 return $this->disa_reas;
111 function disa_reas_set($disa_reas)
113 $this->disa_reas = $disa_reas;