public function verifyEmail(UserAccountModel $user) { global $DB; $stat = $DB->prepare("UPDATE user_account_information SET is_email_verified='t' WHERE id =:id"); $stat->execute(array('id' => $user->getId())); $user->setIsEmailVerified(true); }