diff options
Diffstat (limited to 'demos/time-tracker/protected/App_Code/UserReportsDao.php')
-rw-r--r-- | demos/time-tracker/protected/App_Code/UserReportsDao.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/time-tracker/protected/App_Code/UserReportsDao.php b/demos/time-tracker/protected/App_Code/UserReportsDao.php index 3cf943af..c6eab660 100644 --- a/demos/time-tracker/protected/App_Code/UserReportsDao.php +++ b/demos/time-tracker/protected/App_Code/UserReportsDao.php @@ -14,10 +14,11 @@ class UserReportsDao extends BaseDao return $sqlmap->queryForList('GetTimeReportByCategoryID', $categoryID);
}
- public function getTimeReportsByProjectID($projectID)
+ public function getTimeReportsByProjectIDs($projects)
{
+ $ids = implode(',', array_map('intval', $projects));
$sqlmap = $this->getConnection();
- return $sqlmap->queryForList('GetTimeReportByProjectID', $projectID);
+ return $sqlmap->queryForList('GetTimeReportByProjectIDs', $ids);
}
}
|