PHP 인터페이스 Phalcon\Avatar\Avatarable

Defining an interface for classes that use avatars.
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
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.

메소드 상세

getAvatar() 공개 메소드

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

getDefaultImage() 공개 메소드

Gets the current default image.
public getDefaultImage ( ) : mixed
리턴 mixed

getSize() 공개 메소드

Gets the currently set avatar size.
public getSize ( ) : integer
리턴 integer

setDefaultImage() 공개 메소드

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

setSize() 공개 메소드

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