1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace XoopsModules\Smallworld; |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
You may not change or alter any portion of this comment or credits of |
7
|
|
|
supporting developers from this source code or any supporting source code |
8
|
|
|
which is considered copyrighted (c) material of the original comment or credit |
9
|
|
|
authors. |
10
|
|
|
|
11
|
|
|
This program is distributed in the hope that it will be useful, but |
12
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of |
13
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14
|
|
|
*/ |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* Smallworld |
18
|
|
|
* |
19
|
|
|
* @package \XoopsModules\Smallworld |
20
|
|
|
* @license GNU GPL (https://www.gnu.org/licenses/gpl-2.0.html/) |
21
|
|
|
* @author XOOPS Module Development Team |
22
|
|
|
* @copyright Copyright (c) 2001-2020 {@link https://xoops.org XOOPS Project} |
23
|
|
|
* @link https://github.com/XoopsModules25x/smallworld |
24
|
|
|
* @since 1.16 |
25
|
|
|
*/ |
26
|
|
|
|
27
|
|
|
class SwUser extends \XoopsObject |
28
|
|
|
{ |
29
|
|
|
/** |
30
|
|
|
* Class constructor |
31
|
|
|
*/ |
32
|
|
|
function __construct() |
|
|
|
|
33
|
|
|
{ |
34
|
|
|
parent::__construct(); |
35
|
|
|
$this->initVar('id', XOBJ_DTYPE_INT, null, false); |
36
|
|
|
$this->initVar('userid', XOBJ_DTYPE_TXTBOX, null, false, 255); |
37
|
|
|
$this->initVar('regdate', XOBJ_DTYPE_INT, 0, true); |
38
|
|
|
$this->initVar('username', XOBJ_DTYPE_TXTBOX, null, false, 255); |
39
|
|
|
$this->initVar('userimage', XOBJ_DTYPE_TXTBOX, null, false, 255); |
40
|
|
|
$this->initVar('realname', XOBJ_DTYPE_TXTBOX, null, false, 255); |
41
|
|
|
$this->initVar('gender', XOBJ_DTYPE_TXTBOX, null, false, 255); |
42
|
|
|
$this->initVar('intingender', XOBJ_DTYPE_ARRAY, null, false, 255); |
43
|
|
|
$this->initVar('relationship', XOBJ_DTYPE_TXTBOX, null, false, 255); |
44
|
|
|
$this->initVar('partner', XOBJ_DTYPE_TXTBOX, null, false, 255); |
45
|
|
|
$this->initVar('searchrelat', XOBJ_DTYPE_ARRAY, null, false, 255); |
46
|
|
|
$this->initVar('birthday', XOBJ_DTYPE_TXTBOX, null, false, 255); |
47
|
|
|
$this->initVar('birthplace', XOBJ_DTYPE_TXTBOX, null, false, 255); |
48
|
|
|
$this->initVar('birthplace_lat', XOBJ_DTYPE_TXTBOX, null, false, 255); |
49
|
|
|
$this->initVar('birthplace_lng', XOBJ_DTYPE_TXTBOX, null, false, 255); |
50
|
|
|
$this->initVar('birthplace_country', XOBJ_DTYPE_TXTBOX, null, false, 255); |
51
|
|
|
$this->initVar('politic', XOBJ_DTYPE_TXTBOX, null, false, 255); |
52
|
|
|
$this->initVar('religion', XOBJ_DTYPE_TXTBOX, null, false, 255); |
53
|
|
|
$this->initVar('emailtype', XOBJ_DTYPE_ARRAY, null, false, 255); |
54
|
|
|
$this->initVar('screenname_type', XOBJ_DTYPE_ARRAY, null, false, 255); |
55
|
|
|
$this->initVar('screenname', XOBJ_DTYPE_ARRAY, null, false, 255); |
56
|
|
|
$this->initVar('mobile', XOBJ_DTYPE_TXTBOX, null, false, 255); |
57
|
|
|
$this->initVar('phone', XOBJ_DTYPE_TXTBOX, null, false, 255); |
58
|
|
|
$this->initVar('adress', XOBJ_DTYPE_TXTBOX, null, false, 255); |
59
|
|
|
$this->initVar('present_city', XOBJ_DTYPE_TXTBOX, null, false, 255); |
60
|
|
|
$this->initVar('present_lat', XOBJ_DTYPE_TXTBOX, null, false, 255); |
61
|
|
|
$this->initVar('present_lng', XOBJ_DTYPE_TXTBOX, null, false, 255); |
62
|
|
|
$this->initVar('present_country', XOBJ_DTYPE_TXTBOX, null, false, 255); |
63
|
|
|
$this->initVar('website', XOBJ_DTYPE_TXTBOX, null, false, 255); |
64
|
|
|
$this->initVar('interests', XOBJ_DTYPE_TXTBOX, null, false, 255); |
65
|
|
|
$this->initVar('music', XOBJ_DTYPE_TXTBOX, null, false, 255); |
66
|
|
|
$this->initVar('tvshow', XOBJ_DTYPE_TXTBOX, null, false, 255); |
67
|
|
|
$this->initVar('movie', XOBJ_DTYPE_TXTBOX, null, false, 255); |
68
|
|
|
$this->initVar('books', XOBJ_DTYPE_TXTBOX, null, false, 255); |
69
|
|
|
$this->initVar('aboutme', XOBJ_DTYPE_TXTBOX, null, false, 255); |
70
|
|
|
$this->initVar('school_type', XOBJ_DTYPE_ARRAY, null, false, 255); |
71
|
|
|
$this->initVar('school', XOBJ_DTYPE_ARRAY, null, false, 255); |
72
|
|
|
$this->initVar('schoolstart', XOBJ_DTYPE_ARRAY, null, false, 255); |
73
|
|
|
$this->initVar('schoolstop', XOBJ_DTYPE_ARRAY, null, false, 255); |
74
|
|
|
$this->initVar('employer', XOBJ_DTYPE_ARRAY, null, false, 255); |
75
|
|
|
$this->initVar('position', XOBJ_DTYPE_ARRAY, null, false, 255); |
76
|
|
|
$this->initVar('jobstart', XOBJ_DTYPE_ARRAY, null, false, 255); |
77
|
|
|
$this->initVar('jobstop', XOBJ_DTYPE_ARRAY, null, false, 255); |
78
|
|
|
$this->initVar('description', XOBJ_DTYPE_ARRAY, null, false, 255); |
79
|
|
|
$this->initVar('friends', XOBJ_DTYPE_INT, 0, false); |
80
|
|
|
$this->initVar('followers', XOBJ_DTYPE_INT, 0, false); |
81
|
|
|
$this->initVar('admin_flag', XOBJ_DTYPE_INT, 0, false); |
82
|
|
|
} |
83
|
|
|
} |
84
|
|
|
|
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.