blob: c6eab6607fc2f3f4c246da83cc57a0be0cbbeda7 (
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
|
<?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 getTimeReportsByProjectIDs($projects)
{
$ids = implode(',', array_map('intval', $projects));
$sqlmap = $this->getConnection();
return $sqlmap->queryForList('GetTimeReportByProjectIDs', $ids);
}
}
?>
|