예제 #1
0
 /**
  * Fetch a user by email.
  * 
  * @throws sfNotFoundException	When no user matching $email is found
  * 
  * @param string $email			A user email address.
  * @return sfUser 				The User object.
  */
 public static function fetchUserByEmail($email)
 {
     $obj = fCore::make('sfUser');
     return $obj->loadByQuery(sfCore::$db->query("SELECT * FROM `swoosh_users` WHERE `email`=%s LIMIT 1", $email));
 }