summaryrefslogtreecommitdiff
path: root/tests/simple_unit/ActiveRecord/records/UserRecord.php
blob: c4e8ce60cdeebfe93d532878f06b79448f1d7959 (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
<?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;

	const TABLE='users';

	public function getLevel()
	{
		return $this->_level;
	}

	public function setLevel($level)
	{
		$this->_level=TPropertyValue::ensureInteger($level);
	}

	public static function finder($className=__CLASS__)
	{
		return parent::finder($className);
	}
}

?>