summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/App_Code
diff options
context:
space:
mode:
authorwei <>2006-07-28 06:24:40 +0000
committerwei <>2006-07-28 06:24:40 +0000
commit994065ffd524ade2db3de900226143f5123c5fb1 (patch)
tree35d760954194fdafe7a32e0c227265ec6112e974 /demos/time-tracker/protected/App_Code
parent5fc75a5f53fa07971b604c5318da5bf07379ef89 (diff)
Update time-tracker
Diffstat (limited to 'demos/time-tracker/protected/App_Code')
-rw-r--r--demos/time-tracker/protected/App_Code/ReportsDao.php12
-rw-r--r--demos/time-tracker/protected/App_Code/TimeEntryDao.php9
-rw-r--r--demos/time-tracker/protected/App_Code/UserDao.php4
3 files changed, 1 insertions, 24 deletions
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);
}
/**