diff options
Diffstat (limited to 'demos/time-tracker/protected/App_Code')
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/BaseDao.php (renamed from demos/time-tracker/protected/App_Code/BaseDao.php) | 0 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/CategoryDao.php (renamed from demos/time-tracker/protected/App_Code/CategoryDao.php) | 0 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/CategoryRecord.php (renamed from demos/time-tracker/protected/App_Code/Category.php) | 2 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/ProjectDao.php (renamed from demos/time-tracker/protected/App_Code/ProjectDao.php) | 0 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/ProjectRecord.php (renamed from demos/time-tracker/protected/App_Code/Project.php) | 2 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/ReportsDao.php (renamed from demos/time-tracker/protected/App_Code/ReportsDao.php) | 0 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/TimeEntryDao.php (renamed from demos/time-tracker/protected/App_Code/TimeEntryDao.php) | 0 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/TimeEntryRecord.php (renamed from demos/time-tracker/protected/App_Code/TimeEntry.php) | 2 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/Dao/UserDao.php (renamed from demos/time-tracker/protected/App_Code/UserDao.php) | 0 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/DateTimeMySQL.php | 33 | ||||
-rw-r--r-- | demos/time-tracker/protected/App_Code/TimeTrackerUserTypeHandler.php | 54 |
11 files changed, 3 insertions, 90 deletions
diff --git a/demos/time-tracker/protected/App_Code/BaseDao.php b/demos/time-tracker/protected/App_Code/Dao/BaseDao.php index 63b91def..63b91def 100644 --- a/demos/time-tracker/protected/App_Code/BaseDao.php +++ b/demos/time-tracker/protected/App_Code/Dao/BaseDao.php diff --git a/demos/time-tracker/protected/App_Code/CategoryDao.php b/demos/time-tracker/protected/App_Code/Dao/CategoryDao.php index cb1b6399..cb1b6399 100644 --- a/demos/time-tracker/protected/App_Code/CategoryDao.php +++ b/demos/time-tracker/protected/App_Code/Dao/CategoryDao.php diff --git a/demos/time-tracker/protected/App_Code/Category.php b/demos/time-tracker/protected/App_Code/Dao/CategoryRecord.php index 9bdedb5f..876b582d 100644 --- a/demos/time-tracker/protected/App_Code/Category.php +++ b/demos/time-tracker/protected/App_Code/Dao/CategoryRecord.php @@ -1,6 +1,6 @@ <?php
-class Category
+class CategoryRecord
{
public $ActualDuration = 0.0;
public $Abbreviation = '';
diff --git a/demos/time-tracker/protected/App_Code/ProjectDao.php b/demos/time-tracker/protected/App_Code/Dao/ProjectDao.php index 0a0771e3..0a0771e3 100644 --- a/demos/time-tracker/protected/App_Code/ProjectDao.php +++ b/demos/time-tracker/protected/App_Code/Dao/ProjectDao.php diff --git a/demos/time-tracker/protected/App_Code/Project.php b/demos/time-tracker/protected/App_Code/Dao/ProjectRecord.php index bd9c858b..9739d443 100644 --- a/demos/time-tracker/protected/App_Code/Project.php +++ b/demos/time-tracker/protected/App_Code/Dao/ProjectRecord.php @@ -18,7 +18,7 @@ * @package Demos
* @since 3.1
*/
-class Project
+class ProjectRecord
{
public $ActualDuration = 0;
public $CreatorUserName = '';
diff --git a/demos/time-tracker/protected/App_Code/ReportsDao.php b/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php index 50005d06..50005d06 100644 --- a/demos/time-tracker/protected/App_Code/ReportsDao.php +++ b/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php diff --git a/demos/time-tracker/protected/App_Code/TimeEntryDao.php b/demos/time-tracker/protected/App_Code/Dao/TimeEntryDao.php index 7207ed47..7207ed47 100644 --- a/demos/time-tracker/protected/App_Code/TimeEntryDao.php +++ b/demos/time-tracker/protected/App_Code/Dao/TimeEntryDao.php diff --git a/demos/time-tracker/protected/App_Code/TimeEntry.php b/demos/time-tracker/protected/App_Code/Dao/TimeEntryRecord.php index e250d67f..fa4f5b8f 100644 --- a/demos/time-tracker/protected/App_Code/TimeEntry.php +++ b/demos/time-tracker/protected/App_Code/Dao/TimeEntryRecord.php @@ -1,6 +1,6 @@ <?php
-class TimeEntry
+class TimeEntryRecord
{
public $CreatorUserName='';
public $Category;
diff --git a/demos/time-tracker/protected/App_Code/UserDao.php b/demos/time-tracker/protected/App_Code/Dao/UserDao.php index 95a85410..95a85410 100644 --- a/demos/time-tracker/protected/App_Code/UserDao.php +++ b/demos/time-tracker/protected/App_Code/Dao/UserDao.php diff --git a/demos/time-tracker/protected/App_Code/DateTimeMySQL.php b/demos/time-tracker/protected/App_Code/DateTimeMySQL.php deleted file mode 100644 index 19f41c03..00000000 --- a/demos/time-tracker/protected/App_Code/DateTimeMySQL.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php
-
-class DateTimeMySQL implements ITypeHandlerCallback
-{
- /**
- * Not implemented.
- */
- public function getParameter($integer)
- {
- return date('Y-m-d H:i:s', $integer);
- }
-
- /**
- * Not implemented.
- */
- public function getResult($string)
- {
- return strtotime($string);
- }
-
- /**
- * Creates a new instance of TimeTrackerUser
- * @param array result data
- * @return TimeTrackerUser new user instance
- */
- public function createNewInstance($row=null)
- {
- throw new TimeTrackerException('Not implemented');
- }
-
-}
-
-?>
\ No newline at end of file diff --git a/demos/time-tracker/protected/App_Code/TimeTrackerUserTypeHandler.php b/demos/time-tracker/protected/App_Code/TimeTrackerUserTypeHandler.php deleted file mode 100644 index 07c46acc..00000000 --- a/demos/time-tracker/protected/App_Code/TimeTrackerUserTypeHandler.php +++ /dev/null @@ -1,54 +0,0 @@ -<?php
-/**
- * TimeTrackerUserTypeHandler class file.
- *
- * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright © 2005-2006 PradoSoft
- * @license http://www.pradosoft.com/license/
- * @version $Revision: $ $16/07/2006: $
- * @package Demos
- */
-
-/**
- * SQLMap type handler for TimeTrackerUser.
- * The TimeTrackerUser requires an instance of IUserManager in constructor.
- *
- * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @version $Revision: $ $16/07/2006: $
- * @package Demos
- * @since 3.1
- */
-class TimeTrackerUserTypeHandler implements ITypeHandlerCallback
-{
- /**
- * Not implemented.
- */
- public function getParameter($object)
- {
- throw new TimeTrackerException('Not implemented');
- }
-
- /**
- * Not implemented.
- */
- public function getResult($string)
- {
- throw new TimeTrackerException('Not implemented');
- }
-
- /**
- * Creates a new instance of TimeTrackerUser
- * @param array result data
- * @return TimeTrackerUser new user instance
- */
- public function createNewInstance($row=null)
- {
- $manager = Prado::getApplication()->getModule('users');
- if(is_null($manager))
- $manager = new UserManager();
- return new TimeTrackerUser($manager);
- }
-}
-
-?>
\ No newline at end of file |