1 | <?php |
||
12 | abstract class Mime extends \Mime { |
||
13 | |||
14 | /** |
||
15 | * Get an editor mode |
||
16 | * |
||
17 | * @return string|false : one of the following values: 'php', 'html', 'javascript', 'json', 'css', |
||
18 | * or false if the extension is not supported by the editor |
||
19 | */ |
||
20 | |||
21 | public static function getMode(string $extension) { |
||
27 | |||
28 | /** |
||
29 | * Get a file format |
||
30 | * |
||
31 | * @return string|false : one of the following values: 'image', 'audio', 'video', 'word', 'excel', 'powerpoint', 'pdf', |
||
32 | * or false if the extension does not exist in the MIME types list |
||
33 | */ |
||
34 | |||
35 | public static function getFormat(string $extension) { |
||
55 | } |
||
56 | } |
||
57 |