Свойство | Тип | Описание | |
---|---|---|---|
$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 ) : |
Generate a avatar by a name. |
Метод | Описание | |
---|---|---|
createDirectory ( string $dir ) | Create the avatar directory. | |
getFilePath ( string $name ) : string | Get the file path in public folder. |
protected createDirectory ( string $dir ) | ||
$dir | string |
public generateAvatar ( string $name ) : |
||
$name | string | |
Результат |
protected getFilePath ( string $name ) : string | ||
$name | string | |
Результат | string |
protected static string $directory | ||
Результат | string |
protected static string $extension | ||
Результат | string |
protected static int $fontSize | ||
Результат | integer |
protected static int $height | ||
Результат | integer |
protected static int $quality | ||
Результат | integer |
protected static int $width | ||
Результат | integer |