PHP 클래스 Learner\Services\Image\ImageManagerService

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

보호된 프로퍼티들

프로퍼티 타입 설명
$cateHeight integer The dimensions to height the category image to.
$catePath string The category image path in public folder.
$cateWidth integer The dimensions to width the category image to.
$seriesHeight integer The dimensions to height the series image to.
$seriesPath string The series image path in public folder.
$seriesWidth integer The dimensions to width the series image to.

공개 메소드들

메소드 설명
__construct ( ) Create the directory.
changeCategoryImage ( $image, $imagePath )
changeSeriesImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image, string $imagePath ) : string Change the series image.
saveCategoryImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image ) : string Save the category image.
saveSeriesImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image ) : string Save the series image.

보호된 메소드들

메소드 설명
createDir ( ) Create the dir.
randomCatePath ( $extension )
randomName ( ) : string Generate a filename
randomSeriesPath ( string $extension ) : string Get the series random path.
saveImage ( $image, $type = null )

메소드 상세

__construct() 공개 메소드

Create the directory.
public __construct ( )

changeCategoryImage() 공개 메소드

public changeCategoryImage ( $image, $imagePath )

changeSeriesImage() 공개 메소드

Change the series image.
public changeSeriesImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image, string $imagePath ) : string
$image Symfony\Component\HttpFoundation\File\UploadedFile
$imagePath string
리턴 string

createDir() 보호된 메소드

Create the dir.
protected createDir ( )

randomCatePath() 보호된 메소드

protected randomCatePath ( $extension )

randomName() 보호된 메소드

Generate a filename
protected randomName ( ) : string
리턴 string

randomSeriesPath() 보호된 메소드

Get the series random path.
protected randomSeriesPath ( string $extension ) : string
$extension string
리턴 string

saveCategoryImage() 공개 메소드

Save the category image.
public saveCategoryImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image ) : string
$image Symfony\Component\HttpFoundation\File\UploadedFile
리턴 string

saveImage() 보호된 메소드

protected saveImage ( $image, $type = null )

saveSeriesImage() 공개 메소드

Save the series image.
public saveSeriesImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image ) : string
$image Symfony\Component\HttpFoundation\File\UploadedFile
리턴 string

프로퍼티 상세

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

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

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

The category image path in public folder.
protected static string $catePath
리턴 string

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

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

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

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

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

The series image path in public folder.
protected static string $seriesPath
리턴 string

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

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