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

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

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

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

Открытые методы

Метод Описание
__construct ( ) Create the avatar directory.
generateAvatar ( string $name ) : Avatar Generate a avatar by a name.

Защищенные методы

Метод Описание
createDirectory ( string $dir ) Create the avatar directory.
getFilePath ( string $name ) : string Get the file path in public folder.

Описание методов

__construct() публичный Метод

Create the avatar directory.
public __construct ( )

createDirectory() защищенный Метод

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

generateAvatar() публичный Метод

Generate a avatar by a name.
public generateAvatar ( string $name ) : Avatar
$name string
Результат Laravolt\Avatar\Avatar

getFilePath() защищенный Метод

Get the file path in public folder.
protected getFilePath ( string $name ) : string
$name string
Результат string

Описание свойств

$directory защищенное статическое свойство

The directory to safe image uploads to.
protected static string $directory
Результат string

$extension защищенное статическое свойство

The extension to use for image files.
protected static string $extension
Результат string

$fontSize защищенное статическое свойство

The dimensions to resize the font size to.
protected static int $fontSize
Результат integer

$height защищенное статическое свойство

The dimensions to height the image to.
protected static int $height
Результат integer

$quality защищенное статическое свойство

The quality the image should be saved in.
protected static int $quality
Результат integer

$width защищенное статическое свойство

The dimensions to width the image to.
protected static int $width
Результат integer