d5873525263562052cf4e9d453504bc50e883a5d
[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 $tos_vers;
35     var $disa_reas;
36     var $guar_code;
37
38     function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $tos_vers, $disa_reas, $guar_code)
39     {
40         $this->code      = $code;
41         $this->login     = $login;
42         $this->pass      = $pass;
43         $this->email     = $email;
44         $this->type      = $type;
45         $this->last_dona = $last_dona;
46         $this->supp_comp = $supp_comp;
47         $this->tos_vers  = $tos_vers;
48         $this->disa_reas = $disa_reas;
49         $this->guar_code = $guar_code;
50     }
51
52     static function LoginDBItemFromRecord($rec)
53     {
54         $ret = new LoginDBItem($rec->code, $rec->login, $rec->pass, 
55                                $rec->email, $rec->type, $rec->last_dona,
56                                $rec->supp_comp, $rec->tos_vers, $rec->disa_reas, $rec->guar_code);
57
58         return ($ret);
59     }
60
61     function code_get()
62     {
63         return $this->code;
64     }
65
66     function login_get()
67     {
68         return $this->login;
69     }
70     
71     function pass_get()
72     {
73         return $this->pass;
74     }
75
76     function email_get()
77     {
78         return $this->email;
79     }
80
81     function type_get()
82     {
83         return $this->type;
84     }
85
86     function last_dona_get()
87     {
88         return $this->last_dona;
89     }
90
91     function supp_comp_get()
92     {
93         return $this->supp_comp;
94     }
95     function supp_comp_set($supp_comp)
96     {
97         $this->supp_comp = $supp_comp;
98     }
99
100     function tos_vers_get()
101     {
102         return $this->tos_vers;
103     }
104     function tos_vers_set($tos_vers)
105     {
106         $this->tos_vers = $tos_vers;
107     }
108
109     function disa_reas_get()
110     {
111         return $this->disa_reas;
112     }
113     function disa_reas_set($disa_reas)
114     {
115         $this->disa_reas = $disa_reas;
116     }
117     function guar_code_get()
118     {
119         return $this->guar_code;
120     }
121
122 }
123
124 ?>