diff options
Diffstat (limited to 'demos/time-tracker/protected/App_Code/UserDao.php')
-rw-r--r-- | demos/time-tracker/protected/App_Code/UserDao.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/demos/time-tracker/protected/App_Code/UserDao.php b/demos/time-tracker/protected/App_Code/UserDao.php index 4dc39b2b..6064be7e 100644 --- a/demos/time-tracker/protected/App_Code/UserDao.php +++ b/demos/time-tracker/protected/App_Code/UserDao.php @@ -34,6 +34,16 @@ class UserDao extends BaseDao }
/**
+ * @param string username
+ * @return boolean true if username already exists, false otherwise.
+ */
+ public function usernameExists($username)
+ {
+ $sqlmap = $this->getConnection();
+ return $sqlmap->queryForObject('UsernameExists', $username);
+ }
+
+ /**
* @return array list of all enabled users.
*/
public function getAllUsers()
|