| 1 | <?php |
||
| 4 | class CompatibilityHelper |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @var array |
||
| 8 | */ |
||
| 9 | private $types = array( |
||
| 10 | 'CSV' => 'Csv', |
||
| 11 | 'Excel2003XML' => 'Xml', |
||
| 12 | 'Excel2007' => 'Xlsx', |
||
| 13 | 'Excel5' => 'Xls', |
||
| 14 | 'HTML' => 'Html', |
||
| 15 | 'OOCalc' => 'Ods', |
||
| 16 | 'OpenDocument' => 'Ods', |
||
| 17 | 'PDF' => 'Pdf', |
||
| 18 | 'SYLK' => 'Slk', |
||
| 19 | |||
| 20 | ); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Documentation link: |
||
| 24 | * https://phpspreadsheet.readthedocs.io/en/develop/topics/migration-from-PHPExcel/#renamed-readers-and-writers |
||
| 25 | * |
||
| 26 | * @param string $type |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | 13 | public function convertType($type) |
|
| 34 | } |
||
| 35 |