summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/App_Code/UserReportsDao.php
blob: 3cf943af51d41e8bdd3f9c4c150759fce5852f7c (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
<?php

class UserReportsDao extends BaseDao
{
	public function getUserTimeReport($username)
	{
		$sqlmap = $this->getConnection();
		return $sqlmap->queryForObject('GetTimeReportByUsername', $username);
	}
	
	public function getTimeReportsByCategoryID($categoryID)
	{
		$sqlmap = $this->getConnection();
		return $sqlmap->queryForList('GetTimeReportByCategoryID', $categoryID);		
	}
	
	public function getTimeReportsByProjectID($projectID)
	{
		$sqlmap = $this->getConnection();
		return $sqlmap->queryForList('GetTimeReportByProjectID', $projectID);				
	}
		
}

?>