blob: 02534d6fa4d06254ccb55374875258f188b49145 (
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
|
<?php
class UserRecord extends TActiveRecord
{
public $username;
public $password;
public $email;
public $first_name;
public $last_name;
public $job_title;
public $work_phone;
public $work_fax;
public $active=true;
public $department_id;
public $salutation;
public $hint_question;
public $hint_answer;
private $_level=-1;
public static $_tablename='users';
public function getLevel()
{
return $this->_level;
}
public function setLevel($level)
{
$this->_level=TPropertyValue::ensureInteger($level);
}
public static function finder()
{
return self::getRecordFinder('UserRecord');
}
}
?>
|