IProvider
Interface IProvider
Tags
Table of Contents
- getMimeType() : string
- getThumbnail() : bool|IImage
- get thumbnail for file at path $path
- isAvailable() : bool
- Check if a preview can be generated for $path
Methods
getMimeType()
public
getMimeType() : string
Tags
Return values
string —Regex with the mimetypes that are supported by this provider
getThumbnail()
get thumbnail for file at path $path
public
getThumbnail(string $path, int $maxX, int $maxY, bool $scalingup, View $fileview) : bool|IImage
Parameters
- $path : string
-
Path of file
- $maxX : int
-
The maximum X size of the thumbnail. It can be smaller depending on the shape of the image
- $maxY : int
-
The maximum Y size of the thumbnail. It can be smaller depending on the shape of the image
- $scalingup : bool
-
Disable/Enable upscaling of previews
- $fileview : View
-
fileview object of user folder
Tags
Return values
bool|IImage —false if no preview was generated
isAvailable()
Check if a preview can be generated for $path
public
isAvailable(FileInfo $file) : bool
Parameters
- $file : FileInfo