Add CSV import for tasks

This commit is contained in:
Frederic Guillot
2015-10-12 17:49:30 -04:00
parent e515f37435
commit 7d458cd500
11 changed files with 286 additions and 3 deletions

View File

@@ -166,6 +166,18 @@ class User extends Base
return $this->db->table(self::TABLE)->eq('username', $username)->findOne();
}
/**
* Get user_id by username
*
* @access public
* @param string $username Username
* @return array
*/
public function getIdByUsername($username)
{
return $this->db->table(self::TABLE)->eq('username', $username)->findOneColumn('id');
}
/**
* Get a specific user by the email address
*