Пример #1
0
 /**
  * Обновляет юзера
  *
  * @param ModuleUser_EntityUser $oUser    Объект пользователя
  *
  * @return bool
  */
 public function Update(ModuleUser_EntityUser $oUser)
 {
     $sql = "\n            UPDATE ?_user\n            SET\n                user_password = ?,\n                user_mail = ?,\n                user_skill = ?,\n                user_date_activate = ?,\n                user_date_comment_last = ?,\n                user_rating = ?,\n                user_count_vote = ?,\n                user_activate = ?,\n                user_activate_key = ?,\n                user_profile_name = ?,\n                user_profile_sex = ?,\n                user_profile_country = ?,\n                user_profile_region = ?,\n                user_profile_city = ?,\n                user_profile_birthday = ?,\n                user_profile_about = ?,\n                user_profile_date = ?,\n                user_profile_avatar = ?,\n                user_profile_foto = ?,\n                user_settings_notice_new_topic = ?,\n                user_settings_notice_new_comment = ?,\n                user_settings_notice_new_talk = ?,\n                user_settings_notice_reply_comment = ?,\n                user_settings_notice_new_friend = ?,\n                user_settings_timezone = ?,\n                user_last_session = ?\n            WHERE user_id = ?\n        ";
     $bResult = $this->oDb->query($sql, $oUser->getPassword(), $oUser->getMail(), $oUser->getSkill(), $oUser->getDateActivate(), $oUser->getDateCommentLast(), $oUser->getRating(), $oUser->getCountVote(), $oUser->getActivate(), $oUser->getActivationKey(), $oUser->getProfileName(), $oUser->getProfileSex(), $oUser->getProfileCountry(), $oUser->getProfileRegion(), $oUser->getProfileCity(), $oUser->getProfileBirthday(), $oUser->getProfileAbout(), $oUser->getProfileDate(), $oUser->getProfileAvatar(), $oUser->getProfilePhoto(), $oUser->getSettingsNoticeNewTopic(), $oUser->getSettingsNoticeNewComment(), $oUser->getSettingsNoticeNewTalk(), $oUser->getSettingsNoticeReplyComment(), $oUser->getSettingsNoticeNewFriend(), $oUser->getSettingsTimezone(), $oUser->getLastSession(), $oUser->getId());
     return $bResult !== false;
 }