Extended IOFactory list of file extensions matched to Readers

This commit is contained in:
Mark Baker 2012-07-14 12:33:03 +01:00
parent 15ccc845da
commit 5925bc8a65

View File

@ -225,20 +225,24 @@ class PHPExcel_IOFactory
if (isset($pathinfo['extension'])) { if (isset($pathinfo['extension'])) {
switch (strtolower($pathinfo['extension'])) { switch (strtolower($pathinfo['extension'])) {
case 'xlsx': case 'xlsx': // Excel (OfficeOpenXML) Spreadsheet
case 'xlsm': // Excel (OfficeOpenXML) Macro Spreadsheet (macros will be discarded)
case 'xltx': // Excel (OfficeOpenXML) Template
case 'xltm': // Excel (OfficeOpenXML) Macro Template (macros will be discarded)
$extensionType = 'Excel2007'; $extensionType = 'Excel2007';
break; break;
case 'xls': case 'xls': // Excel (BIFF) Spreadsheet
case 'xlsm': case 'xlt': // Excel (BIFF) Template
$extensionType = 'Excel5'; $extensionType = 'Excel5';
break; break;
case 'ods': case 'ods': // Open/Libre Offic Calc
case 'ots': // Open/Libre Offic Calc Template
$extensionType = 'OOCalc'; $extensionType = 'OOCalc';
break; break;
case 'slk': case 'slk':
$extensionType = 'SYLK'; $extensionType = 'SYLK';
break; break;
case 'xml': case 'xml': // Excel 2003 SpreadSheetML
$extensionType = 'Excel2003XML'; $extensionType = 'Excel2003XML';
break; break;
case 'gnumeric': case 'gnumeric':