PHP Interface Phalcon\Avatar\Avatarable

Defining an interface for classes that use avatars.
Afficher le fichier Open project: phalcon/incubator

Méthodes publiques

Méthode Description
getAvatar ( mixed $identity ) : string Gets the avatar URL based on the provided email identity.
getDefaultImage ( ) : mixed Gets the current default image.
getSize ( ) : integer Gets the currently set avatar size.
setDefaultImage ( mixed $image ) Sets the default image to use for avatars.
setSize ( integer $size ) Sets the avatar size to use.

Method Details

getAvatar() public méthode

Gets the avatar URL based on the provided email identity.
public getAvatar ( mixed $identity ) : string
$identity mixed The identity to get the gravatar for.
Résultat string

getDefaultImage() public méthode

Gets the current default image.
public getDefaultImage ( ) : mixed
Résultat mixed

getSize() public méthode

Gets the currently set avatar size.
public getSize ( ) : integer
Résultat integer

setDefaultImage() public méthode

Sets the default image to use for avatars.
public setDefaultImage ( mixed $image )
$image mixed The default image to use

setSize() public méthode

Sets the avatar size to use.
public setSize ( integer $size )
$size integer The avatar size to use.