blob: 62a63fc5aa61511046db007106cb4b494b5213b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<?php
/**
* UserInfo.php
* model class for table user_info
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* @author André Noack <noack@data-quest.de>
* @copyright 2010 Stud.IP Core-Group
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
* @category Stud.IP
*
* @property string $id alias column for user_id
* @property string $user_id database column
* @property I18NString $hobby database column
* @property I18NString $lebenslauf database column
* @property I18NString $publi database column
* @property I18NString $schwerp database column
* @property string $home database column
* @property string $privatnr database column
* @property string $privatcell database column
* @property string $privadr database column
* @property int $score database column
* @property int $geschlecht database column
* @property int $mkdate database column
* @property int $chdate database column
* @property string $title_front database column
* @property string $title_rear database column
* @property string|null $preferred_language database column
* @property int $smsforward_copy database column
* @property string $smsforward_rec database column
* @property int $email_forward database column
* @property string $motto database column
* @property string $lock_rule database column
* @property string|null $oercampus_description database column
*/
class UserInfo extends SimpleORMap
{
/**
* Constants for column geschlecht
*/
const GENDER_UNKNOWN = 0;
const GENDER_MALE = 1;
const GENDER_FEMALE = 2;
const GENDER_DIVERSE = 3;
protected static function configure($config = [])
{
$config['db_table'] = 'user_info';
$config['i18n_fields']['hobby'] = true;
$config['i18n_fields']['lebenslauf'] = true;
$config['i18n_fields']['schwerp'] = true;
$config['i18n_fields']['publi'] = true;
parent::configure($config);
}
}
|