IConversionProvider
in
This interface is implemented by apps that provide a file conversion provider
Tags
Table of Contents
Methods
- convertFile() : resource|string
- Convert a file to a given MIME type
- getSupportedMimeTypes() : array<int, ConversionMimeProvider>
- Get an array of MIME type tuples this conversion provider supports
Methods
convertFile()
Convert a file to a given MIME type
public
convertFile(File $file, string $targetMimeType) : resource|string
Parameters
- $file : File
-
The file to be converted
- $targetMimeType : string
-
The MIME type to convert the file to
Tags
Return values
resource|string —Resource or string content of the file
getSupportedMimeTypes()
Get an array of MIME type tuples this conversion provider supports
public
getSupportedMimeTypes() : array<int, ConversionMimeProvider>