AvatarModel
class AvatarModel extends AliasModel implements NamedModel
A Model that has a URL, an alias, and an avatar
Constants
AVATAR_LOCATION |
The location where avatars will be stored |
Methods
setAvatarFile(File|null $file)
Set the avatar of the object to be a specific file
string
getAvatar(bool $url = false)
Get the path for the image used as the object's avatar
setAvatar(string $avatar)
Change the avatar of the object
resetAvatar()
Reset the object's avatar to an identicon
Details
at line line 57
AvatarModel
setAvatarFile(File|null $file)
Set the avatar of the object to be a specific file
at line line 82
string
getAvatar(bool $url = false)
Get the path for the image used as the object's avatar
at line line 101
AvatarModel
setAvatar(string $avatar)
Change the avatar of the object
at line line 122
AvatarModel
resetAvatar()
Reset the object's avatar to an identicon