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.
35 function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp)
38 $this->login = $login;
40 $this->email = $email;
42 $this->last_dona = $last_dona;
43 $this->supp_comp = $supp_comp;
46 static function LoginDBItemFromRecord($rec)
48 $ret = new LoginDBItem($rec->code, $rec->login, $rec->pass,
49 $rec->email, $rec->type, $rec->last_dona,
80 function last_dona_get()
82 return $this->last_dona;
85 function supp_comp_get()
87 return $this->supp_comp;