summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/APP_CODE/TimeTrackerUser.php
blob: 4b6987bd48604c00592478610c82a40403ae7e33 (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
<?php

Prado::using('System.Security.TUser');
Prado::using('System.Security.TUserManager');

class TimeTrackerUser extends TUser
{
	private $_ID;
	
	public function __construct()
	{
		parent::__construct(new TUserManager());
	}
		
	public function getID(){ return $this->_ID; }
	public function setID($value)
	{ 
		if(is_null($this->_ID))
			$this->_ID = $value;
		else
			throw new TimeTrackerUserException(
				'timetracker_user_readonly_id');
	}
}

class TimeTrackerUserException extends TimeTrackerException
{
	
}

?>