disa_reas field added to users table
[brisk.git] / web / Obj / dbase_base.phh
1 <?php
2   /*
3    *  brisk - dbase_base.phh
4    *
5    *  Copyright (C) 2011-2012 Matteo Nastasi
6    *                          mailto: nastasi@alternativeoutput.it 
7    *                                  matteo.nastasi@milug.org
8    *                          web: http://www.alternativeoutput.it
9    *
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.
14    *
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.
22    *
23    */
24
25
26 class LoginDBItem {
27     var $code;
28     var $login;
29     var $pass;
30     var $email;
31     var $type;
32     var $last_dona;
33     var $supp_comp;
34     var $lice_vers;
35     var $disa_reas;
36
37     function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $lice_vers, $disa_reas)
38     {
39         $this->code      = $code;
40         $this->login     = $login;
41         $this->pass      = $pass;
42         $this->email     = $email;
43         $this->type      = $type;
44         $this->last_dona = $last_dona;
45         $this->supp_comp = $supp_comp;
46         $this->lice_vers = $lice_vers;
47         $this->disa_reas = $disa_reas;
48     }
49
50     static function LoginDBItemFromRecord($rec)
51     {
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);
55
56         return ($ret);
57     }
58
59     function code_get()
60     {
61         return $this->code;
62     }
63
64     function login_get()
65     {
66         return $this->login;
67     }
68     
69     function pass_get()
70     {
71         return $this->pass;
72     }
73
74     function email_get()
75     {
76         return $this->email;
77     }
78
79     function type_get()
80     {
81         return $this->type;
82     }
83
84     function last_dona_get()
85     {
86         return $this->last_dona;
87     }
88
89     function supp_comp_get()
90     {
91         return $this->supp_comp;
92     }
93
94     function lice_vers_get()
95     {
96         return $this->lice_vers;
97     }
98
99     function disa_reas_get()
100     {
101         return $this->disa_reas;
102     }
103
104 }
105
106 ?>