final class UploadConfigDefinition extends AbstractConfigDefinition (View source)

Properties

protected mixed[] $data from  AbstractConfigDefinition

Methods

static string
string
fileProfile(string $profile, string $targetDirectory, int $maxBytes, array $allowedMimeTypes, array $allowedExtensions = [])
imageProfile(string $profile, string $targetDirectory, int $maxBytes, array $allowedMimeTypes, array $allowedExtensions = [], bool $reencode = true, int|null $minWidth = null, int|null $maxWidth = null, int|null $minHeight = null, int|null $maxHeight = null)

Details

toArray

No description

Return Value

array

fromArrayData

final static AbstractConfigDefinition fromArrayData(array $data)

No description

Parameters

array $data

Return Value

AbstractConfigDefinition

set

protected AbstractConfigDefinition set(string $path, mixed $value)

No description

Parameters

string $path
mixed $value

Return Value

AbstractConfigDefinition

append

protected AbstractConfigDefinition append(string $path, mixed $value)

No description

Parameters

string $path
mixed $value

Return Value

AbstractConfigDefinition

create

No description

Return Value

UploadConfigDefinition

moduleKey

static string moduleKey()

No description

Return Value

string

fileProfile

UploadConfigDefinition fileProfile(string $profile, string $targetDirectory, int $maxBytes, array $allowedMimeTypes, array $allowedExtensions = [])

No description

Parameters

string $profile
string $targetDirectory
int $maxBytes
array $allowedMimeTypes
array $allowedExtensions

Return Value

UploadConfigDefinition

imageProfile

UploadConfigDefinition imageProfile(string $profile, string $targetDirectory, int $maxBytes, array $allowedMimeTypes, array $allowedExtensions = [], bool $reencode = true, int|null $minWidth = null, int|null $maxWidth = null, int|null $minHeight = null, int|null $maxHeight = null)

No description

Parameters

string $profile
string $targetDirectory
int $maxBytes
array $allowedMimeTypes
array $allowedExtensions
bool $reencode
int|null $minWidth
int|null $maxWidth
int|null $minHeight
int|null $maxHeight

Return Value

UploadConfigDefinition