1 | <?php |
||
12 | class XlsxParser |
||
13 | { |
||
14 | /** |
||
15 | * @staticvar string the name of the format |
||
16 | */ |
||
17 | const FORMAT_NAME = 'xlsx'; |
||
18 | |||
19 | /** |
||
20 | * @staticvar string the name of the macro format |
||
21 | */ |
||
22 | const MACRO_FORMAT_NAME = 'xlsm'; |
||
23 | |||
24 | /** |
||
25 | * @staticvar string Archive class |
||
26 | */ |
||
27 | const ARCHIVE_CLASS = 'Akeneo\Component\SpreadsheetParser\Xlsx\Archive'; |
||
28 | |||
29 | /** |
||
30 | * @staticvar string Relationships class |
||
31 | */ |
||
32 | const RELATIONSHIPS_CLASS = 'Akeneo\Component\SpreadsheetParser\Xlsx\Relationships'; |
||
33 | |||
34 | /** |
||
35 | * @staticvar string RowBuilder class |
||
36 | */ |
||
37 | const ROW_BUILDER_CLASS = 'Akeneo\Component\SpreadsheetParser\Xlsx\RowBuilder'; |
||
38 | |||
39 | /** |
||
40 | * @staticvar string RowIterator class |
||
41 | */ |
||
42 | const ROW_ITERATOR_CLASS = 'Akeneo\Component\SpreadsheetParser\Xlsx\RowIterator'; |
||
43 | |||
44 | /** |
||
45 | * @staticvar string SharedStrings class |
||
46 | */ |
||
47 | const SHARED_STRINGS_CLASS = 'Akeneo\Component\SpreadsheetParser\Xlsx\SharedStrings'; |
||
48 | |||
49 | /** |
||
50 | * @staticvar string Styles class |
||
51 | */ |
||
52 | const STYLES_CLASS = 'Akeneo\Component\SpreadsheetParser\Xlsx\Styles'; |
||
53 | |||
54 | /** |
||
55 | * @staticvar string ValueTransformer class |
||
56 | */ |
||
57 | const VALUE_TRANSFORMER_CLASS = 'Akeneo\Component\SpreadsheetParser\Xlsx\ValueTransformer'; |
||
58 | |||
59 | /** |
||
60 | * @staticvar string Spreadsheet class |
||
61 | */ |
||
62 | const WORKBOOK_CLASS = 'Akeneo\Component\SpreadsheetParser\Xlsx\Spreadsheet'; |
||
63 | |||
64 | /** |
||
65 | * @var SpreadsheetLoader |
||
66 | */ |
||
67 | private static $spreadsheetLoader; |
||
68 | |||
69 | /** |
||
70 | * Opens an XLSX file |
||
71 | * |
||
72 | * @param string $path |
||
73 | * |
||
74 | * @return Spreadsheet |
||
75 | */ |
||
76 | public static function open($path) |
||
80 | |||
81 | /** |
||
82 | * @return SpreadsheetLoader |
||
83 | */ |
||
84 | public static function getSpreadsheetLoader() |
||
101 | |||
102 | /** |
||
103 | * @return ArchiveLoader |
||
104 | */ |
||
105 | protected static function createArchiveLoader() |
||
109 | |||
110 | /** |
||
111 | * @return RelationshipsLoader |
||
112 | */ |
||
113 | protected static function createRelationshipsLoader() |
||
117 | |||
118 | /** |
||
119 | * @return SharedStringsLoader |
||
120 | */ |
||
121 | protected static function createSharedStringsLoader() |
||
125 | |||
126 | /** |
||
127 | * @return StylesLoader |
||
128 | */ |
||
129 | protected static function createStylesLoader() |
||
133 | |||
134 | /** |
||
135 | * @return WorksheetListReader |
||
136 | */ |
||
137 | protected static function createWorksheetListReader() |
||
141 | |||
142 | /** |
||
143 | * @return ValueTransformerFactory |
||
144 | */ |
||
145 | protected static function createValueTransformerFactory() |
||
149 | |||
150 | /** |
||
151 | * @return DateTransformer |
||
152 | */ |
||
153 | protected static function createDateTransformer() |
||
157 | |||
158 | /** |
||
159 | * @return RowBuilderFactory |
||
160 | */ |
||
161 | protected static function createRowBuilderFactory() |
||
165 | |||
166 | /** |
||
167 | * @return ColumnIndexTransformer |
||
168 | */ |
||
169 | protected static function createColumnIndexTransformer() |
||
173 | |||
174 | /** |
||
175 | * @return RowIteratorFactory |
||
176 | */ |
||
177 | protected static function createRowIteratorFactory() |
||
185 | } |
||
186 |