本文整理汇总了PHP中ModuleUser_EntityUser::getProfilePhoto方法的典型用法代码示例。如果您正苦于以下问题:PHP ModuleUser_EntityUser::getProfilePhoto方法的具体用法?PHP ModuleUser_EntityUser::getProfilePhoto怎么用?PHP ModuleUser_EntityUser::getProfilePhoto使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ModuleUser_EntityUser
的用法示例。
在下文中一共展示了ModuleUser_EntityUser::getProfilePhoto方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Update
/**
* Обновляет юзера
*
* @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;
}
示例2: DeletePhoto
/**
* Удаляет фото пользователя
*
* @param ModuleUser_EntityUser $oUser
*
* @return bool
*/
public function DeletePhoto($oUser)
{
$bResult = true;
if ($sPhoto = $oUser->getProfilePhoto()) {
$sFile = E::ModuleUploader()->Url2Dir($sPhoto);
$bResult = E::ModuleImg()->Delete($sFile);
if ($bResult) {
$oUser->setProfilePhoto(null);
E::ModuleUser()->Update($oUser);
}
}
return $bResult;
}
示例3: DeletePhoto
/**
* Удаляет фото пользователя
*
* @param ModuleUser_EntityUser $oUser
*/
public function DeletePhoto($oUser)
{
E::ModuleImg()->Delete(E::ModuleUploader()->Url2Dir($oUser->getProfilePhoto()));
}