FileService
in package
FinalYes
Table of Contents
Constants
- IMG_RANDOM_NUMBER_MAX : int = 9999
- IMG_SUPPORTED_MIME_TYPES : array<string|int, mixed> = ['image/webp']
Properties
Methods
- __construct() : mixed
- getAvailableImgFilename() : Filename
- getUploadedImages() : array<int, string>
Constants
IMG_RANDOM_NUMBER_MAX
public
int
IMG_RANDOM_NUMBER_MAX
= 9999
IMG_SUPPORTED_MIME_TYPES
public
array<string|int, mixed>
IMG_SUPPORTED_MIME_TYPES
= ['image/webp']
Properties
$conf
private
AppConf
$conf
Methods
__construct()
public
__construct(AppConf $conf) : mixed
Parameters
- $conf : AppConf
getAvailableImgFilename()
public
getAvailableImgFilename(Filename $destFilename) : Filename
Parameters
- $destFilename : Filename
Return values
FilenamegetUploadedImages()
public
getUploadedImages() : array<int, string>
Tags
Return values
array<int, string> —Filenames of all images in the uploaded files folder (subfolders not included).