| 1 | <?php |
||
| 9 | abstract class FilesHandler |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Handles the given file |
||
| 14 | * |
||
| 15 | * @param $file_name |
||
| 16 | * @param $mime_type |
||
| 17 | * |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public static function handle($file_name, $mime_type) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Extracts the given zip file. |
||
| 32 | * |
||
| 33 | * @param $file_name |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | private static function extractZipFile($file_name) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Scans folder to get all files inside. |
||
| 55 | * |
||
| 56 | * @param string $dir |
||
| 57 | * |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | public static function scanFolder($dir) |
||
| 70 | } |
||
| 71 |