d8bc1d7a7253b8edd117fe8d12fafabc663ed951
[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
36     function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $lice_vers)
37     {
38         $this->code      = $code;
39         $this->login     = $login;
40         $this->pass      = $pass;
41         $this->email     = $email;
42         $this->type      = $type;
43         $this->last_dona = $last_dona;
44         $this->supp_comp = $supp_comp;
45         $this->lice_vers = $lice_vers;
46     }
47
48     static function LoginDBItemFromRecord($rec)
49     {
50         $ret = new LoginDBItem($rec->code, $rec->login, $rec->pass, 
51                                $rec->email, $rec->type, $rec->last_dona,
52                                $rec->supp_comp, $ret->lice_vers);
53
54         return ($ret);
55     }
56
57     function code_get()
58     {
59         return $this->code;
60     }
61
62     function login_get()
63     {
64         return $this->login;
65     }
66     
67     function pass_get()
68     {
69         return $this->pass;
70     }
71
72     function email_get()
73     {
74         return $this->email;
75     }
76
77     function type_get()
78     {
79         return $this->type;
80     }
81
82     function last_dona_get()
83     {
84         return $this->last_dona;
85     }
86
87     function supp_comp_get()
88     {
89         return $this->supp_comp;
90     }
91
92     function lice_vers_get()
93     {
94         return $this->lice_vers;
95     }
96
97 }
98
99 ?>