diff options
Diffstat (limited to 'demos/time-tracker/protected/App_Code/TimeEntryDao.php')
-rw-r--r-- | demos/time-tracker/protected/App_Code/TimeEntryDao.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/demos/time-tracker/protected/App_Code/TimeEntryDao.php b/demos/time-tracker/protected/App_Code/TimeEntryDao.php deleted file mode 100644 index 7207ed47..00000000 --- a/demos/time-tracker/protected/App_Code/TimeEntryDao.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php
-
-class TimeEntryDao extends BaseDao
-{
- public function addNewTimeEntry($entry)
- {
- $sqlmap = $this->getConnection();
- $sqlmap->insert('AddNewTimeEntry', $entry);
- }
-
- public function getTimeEntryByID($entryID)
- {
- $sqlmap = $this->getConnection();
- return $sqlmap->queryForObject('GetTimeEntryByID', $entryID);
- }
-
- public function deleteTimeEntry($entryID)
- {
- $sqlmap = $this->getConnection();
- $sqlmap->delete('DeleteTimeEntry', $entryID);
- }
-
- public function getTimeEntriesInProject($username, $projectID)
- {
- $sqlmap = $this->getConnection();
- $param['username'] = $username;
- $param['project'] = $projectID;
- return $sqlmap->queryForList('GetAllTimeEntriesByProjectIdAndUser', $param);
- }
-
- public function updateTimeEntry($entry)
- {
- $sqlmap = $this->getConnection();
- $sqlmap->update('UpdateTimeEntry', $entry);
- }
-}
-
-?>
\ No newline at end of file |