IConversionManager
in
Tags
Table of Contents
Methods
- convert() : string
- Convert a file to a given MIME type
- getProviders() : array<int, ConversionMimeProvider>
- Gets all supported MIME type conversions
- hasProviders() : bool
- Determines whether or not conversion providers are available
Methods
convert()
Convert a file to a given MIME type
public
convert(File $file, string $targetMimeType[, string|null $destination = null ]) : string
Parameters
- $file : File
-
The file to be converted
- $targetMimeType : string
-
The MIME type to convert the file to
- $destination : string|null = null
-
The destination to save the converted file
Tags
Return values
string —Path to the converted file
getProviders()
Gets all supported MIME type conversions
public
getProviders() : array<int, ConversionMimeProvider>
Tags
Return values
array<int, ConversionMimeProvider>hasProviders()
Determines whether or not conversion providers are available
public
hasProviders() : bool