Minahito
minah****@users*****
2006年 3月 8日 (水) 19:24:30 JST
Index: xoops2jp/html/modules/user/forms/AvatarEditForm.class.php diff -u xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.2 xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.2 Thu Feb 2 17:50:01 2006 +++ xoops2jp/html/modules/user/forms/AvatarEditForm.class.php Wed Mar 8 19:24:29 2006 @@ -72,6 +72,23 @@ $obj->set('user_avatar', $this->mFormFile->getFileName()); //< TODO } + + /** + * @return UserAvatarObject + */ + function createAvatar() + { + $avatar = null; + if ($this->mFormFile != null) { + $avatarHandler =& xoops_getmodulehandler('avatar'); + $avatar =& $avatarHandler->create(); + $avatar->set('avatar_file', $this->mFormFile->getFileName()); + $avatar->set('avatar_mimetype', $this->mFormFile->getContentType()); + $avatar->set('avatar_type', 'C'); + } + + return $avatar; + } } ?>