Documentation

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

$conf  : AppConf

Methods

__construct()  : mixed
createThumbnails()  : void
getAvailablePathForUploadedImg()  : string
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

Methods

getAvailablePathForUploadedImg()

public getAvailablePathForUploadedImg(Filename $destFilename) : string
Parameters
$destFilename : Filename
Return values
string

getUploadedImages()

public getUploadedImages() : array<int, string>
Tags
todo

Assume that filenames are one-byte encoded.

Assume that filenames are in lowercase.

Hard-coded file extensions.

Return values
array<int, string>

Filenames of all images in the uploaded files folder (subfolders not included).

On this page

Search results