\rex_mediapool

Summary

Methods
Properties
Constants
filename()
mediaIsInUse()
isAllowedExtension()
isAllowedMimeType()
getAllowedExtensions()
getBlockedExtensions()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

filename()

filename(string  $mediaName, bool  $doSubindexing = true) : string

Erstellt einen Filename der eindeutig ist für den Medienpool.

Parameters

string $mediaName

Dateiname

bool $doSubindexing

Returns

string —

mediaIsInUse()

mediaIsInUse(string  $filename) : bool|string

Parameters

string $filename

Returns

bool|string —

isAllowedExtension()

isAllowedExtension(string  $filename, array  $args = []) : bool

check if mediatpye(extension) is allowed for upload.

Parameters

string $filename
array $args

Returns

bool —

isAllowedMimeType()

isAllowedMimeType(string  $path, null|string  $filename = null) : bool

Checks file against optional property `allowed_mime_types`.

Parameters

string $path

Path to the physical file

null|string $filename

Optional filename, will be used for extracting the file extension. If not given, the extension is extracted from $path.

Returns

bool —

getAllowedExtensions()

getAllowedExtensions(array  $args = []) : array

Get allowed mediatype extensions given via media widget "types" param.

Parameters

array $args

widget params

Returns

array —

allowedExtensions

getBlockedExtensions()

getBlockedExtensions() : array

Get global blocked mediatype extensions.

Returns

array —

blocked mediatype extensions