PHP Class Learner\Services\Image\AvatarManagerService

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

Protected Properties

Свойство Type Description
$directory string The directory to safe image uploads to.
$extension string The extension to use for image files.
$fontSize integer The dimensions to resize the font size to.
$height integer The dimensions to height the image to.
$quality integer The quality the image should be saved in.
$width integer The dimensions to width the image to.

Méthodes publiques

Méthode Description
__construct ( ) Create the avatar directory.
generateAvatar ( string $name ) : Avatar Generate a avatar by a name.

Méthodes protégées

Méthode Description
createDirectory ( string $dir ) Create the avatar directory.
getFilePath ( string $name ) : string Get the file path in public folder.

Method Details

__construct() public méthode

Create the avatar directory.
public __construct ( )

createDirectory() protected méthode

Create the avatar directory.
protected createDirectory ( string $dir )
$dir string

generateAvatar() public méthode

Generate a avatar by a name.
public generateAvatar ( string $name ) : Avatar
$name string
Résultat Laravolt\Avatar\Avatar

getFilePath() protected méthode

Get the file path in public folder.
protected getFilePath ( string $name ) : string
$name string
Résultat string

Property Details

$directory protected_oe static_oe property

The directory to safe image uploads to.
protected static string $directory
Résultat string

$extension protected_oe static_oe property

The extension to use for image files.
protected static string $extension
Résultat string

$fontSize protected_oe static_oe property

The dimensions to resize the font size to.
protected static int $fontSize
Résultat integer

$height protected_oe static_oe property

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

$quality protected_oe static_oe property

The quality the image should be saved in.
protected static int $quality
Résultat integer

$width protected_oe static_oe property

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