PHP Класс Learner\Services\Image\ImageManagerService

Наследование: use trait ManagerTrait
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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