From 994065ffd524ade2db3de900226143f5123c5fb1 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 28 Jul 2006 06:24:40 +0000 Subject: Update time-tracker --- demos/time-tracker/protected/App_Code/ReportsDao.php | 12 ------------ demos/time-tracker/protected/App_Code/TimeEntryDao.php | 9 --------- demos/time-tracker/protected/App_Code/UserDao.php | 4 +--- 3 files changed, 1 insertion(+), 24 deletions(-) (limited to 'demos/time-tracker/protected/App_Code') diff --git a/demos/time-tracker/protected/App_Code/ReportsDao.php b/demos/time-tracker/protected/App_Code/ReportsDao.php index 8d2e2627..50005d06 100644 --- a/demos/time-tracker/protected/App_Code/ReportsDao.php +++ b/demos/time-tracker/protected/App_Code/ReportsDao.php @@ -61,18 +61,6 @@ class UserProjectReport class ReportsDao 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)); diff --git a/demos/time-tracker/protected/App_Code/TimeEntryDao.php b/demos/time-tracker/protected/App_Code/TimeEntryDao.php index 60301f3b..7207ed47 100644 --- a/demos/time-tracker/protected/App_Code/TimeEntryDao.php +++ b/demos/time-tracker/protected/App_Code/TimeEntryDao.php @@ -33,15 +33,6 @@ class TimeEntryDao extends BaseDao $sqlmap = $this->getConnection(); $sqlmap->update('UpdateTimeEntry', $entry); } - - public function getTimeEntriesByDate($username, $start, $end) - { - $sqlmap = $this->getConnection(); - $param['username'] = $username; - $param['startDate'] = $start; - $param['endDate'] = $end; - return $sqlmap->queryForList('GetTimeEntriesByDate', $param); - } } ?> \ No newline at end of file diff --git a/demos/time-tracker/protected/App_Code/UserDao.php b/demos/time-tracker/protected/App_Code/UserDao.php index a0a80f7e..95a85410 100644 --- a/demos/time-tracker/protected/App_Code/UserDao.php +++ b/demos/time-tracker/protected/App_Code/UserDao.php @@ -30,9 +30,7 @@ class UserDao extends BaseDao public function getUserByName($username) { $sqlmap = $this->getConnection(); - $user = $sqlmap->queryForObject('GetUserByName', $username); - var_dump($user); - return $user; + return $sqlmap->queryForObject('GetUserByName', $username); } /** -- cgit v1.2.3