Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
createDir ( ) | Create the dir. | |
randomCatePath ( $extension ) | ||
randomName ( ) : string | Generate a filename | |
randomSeriesPath ( string $extension ) : string | Get the series random path. | |
saveImage ( $image, $type = null ) |
public changeSeriesImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image, string $imagePath ) : string | ||
$image | Symfony\Component\HttpFoundation\File\UploadedFile | |
$imagePath | string | |
return | string |
protected randomSeriesPath ( string $extension ) : string | ||
$extension | string | |
return | string |
public saveCategoryImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image ) : string | ||
$image | Symfony\Component\HttpFoundation\File\UploadedFile | |
return | string |
public saveSeriesImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image ) : string | ||
$image | Symfony\Component\HttpFoundation\File\UploadedFile | |
return | string |
protected static int $cateHeight | ||
return | integer |
protected static string $catePath | ||
return | string |
protected static int $cateWidth | ||
return | integer |
protected static int $seriesHeight | ||
return | integer |
protected static string $seriesPath | ||
return | string |
protected static int $seriesWidth | ||
return | integer |