PHP 클래스 Learner\Services\Image\AvatarManagerService

상속: extends ImageManagerService, use trait ManagerTrait
파일 보기 프로젝트 열기: RryLee/learner.video

보호된 프로퍼티들

프로퍼티 타입 설명
$directory string The directory to safe image uploads to.
$extension string The extension to use for image files.
$fontSize integer The dimensions to resize the font size to.
$height integer The dimensions to height the image to.
$quality integer The quality the image should be saved in.
$width integer The dimensions to width the image to.

공개 메소드들

메소드 설명
__construct ( ) Create the avatar directory.
generateAvatar ( string $name ) : Avatar Generate a avatar by a name.

보호된 메소드들

메소드 설명
createDirectory ( string $dir ) Create the avatar directory.
getFilePath ( string $name ) : string Get the file path in public folder.

메소드 상세

__construct() 공개 메소드

Create the avatar directory.
public __construct ( )

createDirectory() 보호된 메소드

Create the avatar directory.
protected createDirectory ( string $dir )
$dir string

generateAvatar() 공개 메소드

Generate a avatar by a name.
public generateAvatar ( string $name ) : Avatar
$name string
리턴 Laravolt\Avatar\Avatar

getFilePath() 보호된 메소드

Get the file path in public folder.
protected getFilePath ( string $name ) : string
$name string
리턴 string

프로퍼티 상세

$directory 보호되어 있는 정적으로 프로퍼티

The directory to safe image uploads to.
protected static string $directory
리턴 string

$extension 보호되어 있는 정적으로 프로퍼티

The extension to use for image files.
protected static string $extension
리턴 string

$fontSize 보호되어 있는 정적으로 프로퍼티

The dimensions to resize the font size to.
protected static int $fontSize
리턴 integer

$height 보호되어 있는 정적으로 프로퍼티

The dimensions to height the image to.
protected static int $height
리턴 integer

$quality 보호되어 있는 정적으로 프로퍼티

The quality the image should be saved in.
protected static int $quality
리턴 integer

$width 보호되어 있는 정적으로 프로퍼티

The dimensions to width the image to.
protected static int $width
리턴 integer