PHP Class Learner\Services\Image\ImageManagerService

Inheritance: use trait ManagerTrait
Afficher le fichier Open project: RryLee/learner.video

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 )

Method Details

__construct() public méthode

Create the directory.
public __construct ( )

changeCategoryImage() public méthode

public changeCategoryImage ( $image, $imagePath )

changeSeriesImage() public méthode

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

createDir() protected méthode

Create the dir.
protected createDir ( )

randomCatePath() protected méthode

protected randomCatePath ( $extension )

randomName() protected méthode

Generate a filename
protected randomName ( ) : string
Résultat string

randomSeriesPath() protected méthode

Get the series random path.
protected randomSeriesPath ( string $extension ) : string
$extension string
Résultat string

saveCategoryImage() public méthode

Save the category image.
public saveCategoryImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image ) : string
$image Symfony\Component\HttpFoundation\File\UploadedFile
Résultat string

saveImage() protected méthode

protected saveImage ( $image, $type = null )

saveSeriesImage() public méthode

Save the series image.
public saveSeriesImage ( Symfony\Component\HttpFoundation\File\UploadedFile $image ) : string
$image Symfony\Component\HttpFoundation\File\UploadedFile
Résultat string

Property Details

$cateHeight protected_oe static_oe property

The dimensions to height the category image to.
protected static int $cateHeight
Résultat integer

$catePath protected_oe static_oe property

The category image path in public folder.
protected static string $catePath
Résultat string

$cateWidth protected_oe static_oe property

The dimensions to width the category image to.
protected static int $cateWidth
Résultat integer

$seriesHeight protected_oe static_oe property

The dimensions to height the series image to.
protected static int $seriesHeight
Résultat integer

$seriesPath protected_oe static_oe property

The series image path in public folder.
protected static string $seriesPath
Résultat string

$seriesWidth protected_oe static_oe property

The dimensions to width the series image to.
protected static int $seriesWidth
Résultat integer