rex_mediapool
in package
FinalYes
Table of Contents
Methods
- filename() : string
- Erstellt einen Filename der eindeutig ist für den Medienpool.
- getAllowedExtensions() : array<string|int, mixed>
- Get allowed mediatype extensions given via media widget "types" param.
- getBlockedExtensions() : array<string|int, mixed>
- Get global blocked mediatype extensions.
- isAllowedExtension() : bool
- check if mediatpye(extension) is allowed for upload.
- isAllowedMimeType() : bool
- Checks file against optional property `allowed_mime_types`.
- mediaIsInUse() : bool|string
Methods
filename()
Erstellt einen Filename der eindeutig ist für den Medienpool.
public
static filename(string $mediaName[, bool $doSubindexing = true ]) : string
Parameters
- $mediaName : string
-
Dateiname
- $doSubindexing : bool = true
Return values
stringgetAllowedExtensions()
Get allowed mediatype extensions given via media widget "types" param.
public
static getAllowedExtensions([array<string|int, mixed> $args = [] ]) : array<string|int, mixed>
Parameters
- $args : array<string|int, mixed> = []
-
widget params
Return values
array<string|int, mixed> —allowedExtensions
getBlockedExtensions()
Get global blocked mediatype extensions.
public
static getBlockedExtensions() : array<string|int, mixed>
Return values
array<string|int, mixed> —blocked mediatype extensions
isAllowedExtension()
check if mediatpye(extension) is allowed for upload.
public
static isAllowedExtension(string $filename[, array<string|int, mixed> $args = [] ]) : bool
Parameters
- $filename : string
- $args : array<string|int, mixed> = []
Return values
boolisAllowedMimeType()
Checks file against optional property `allowed_mime_types`.
public
static isAllowedMimeType(string $path[, string|null $filename = null ]) : bool
Parameters
- $path : string
-
Path to the physical file
- $filename : string|null = null
-
Optional filename, will be used for extracting the file extension. If not given, the extension is extracted from
$path
.
Return values
boolmediaIsInUse()
public
static mediaIsInUse(string $filename) : bool|string
Parameters
- $filename : string