PHP Class Learner\Services\Image\ImageManagerService

Inheritance: use trait ManagerTrait
Datei anzeigen Open project: RryLee/learner.video

Protected Properties

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.

Public Methods

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.

Protected Methods

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 )

Method Details

__construct() public method

Create the directory.
public __construct ( )

changeCategoryImage() public method

public changeCategoryImage ( $image, $imagePath )

changeSeriesImage() public method

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

createDir() protected method

Create the dir.
protected createDir ( )

randomCatePath() protected method

protected randomCatePath ( $extension )

randomName() protected method

Generate a filename
protected randomName ( ) : string
return string

randomSeriesPath() protected method

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

saveCategoryImage() public method

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

saveImage() protected method

protected saveImage ( $image, $type = null )

saveSeriesImage() public method

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

Property Details

$cateHeight protected_oe static_oe property

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

$catePath protected_oe static_oe property

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

$cateWidth protected_oe static_oe property

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

$seriesHeight protected_oe static_oe property

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

$seriesPath protected_oe static_oe property

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

$seriesWidth protected_oe static_oe property

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