1 | <?php |
||
13 | class Reader extends ReaderAbstract |
||
14 | { |
||
15 | /** @var \ZipArchive */ |
||
16 | protected $zip; |
||
17 | |||
18 | /** @var SheetIterator To iterator over the ODS sheets */ |
||
19 | protected $sheetIterator; |
||
20 | |||
21 | /** |
||
22 | * Returns whether stream wrappers are supported |
||
23 | * |
||
24 | * @return bool |
||
25 | */ |
||
26 | 2 | protected function doesSupportStreamWrapper() |
|
30 | |||
31 | /** |
||
32 | * Opens the file at the given file path to make it ready to be read. |
||
33 | * |
||
34 | * @param string $filePath Path of the file to be read |
||
35 | * @throws \Box\Spout\Common\Exception\IOException If the file at the given path or its content cannot be read |
||
36 | * @throws \Box\Spout\Reader\Exception\NoSheetsFoundException If there are no sheets in the file |
||
37 | * @return void |
||
38 | */ |
||
39 | 31 | protected function openReader($filePath) |
|
54 | |||
55 | /** |
||
56 | * Returns an iterator to iterate over sheets. |
||
57 | * |
||
58 | * @return SheetIterator To iterate over sheets |
||
59 | */ |
||
60 | 31 | protected function getConcreteSheetIterator() |
|
64 | |||
65 | /** |
||
66 | * Closes the reader. To be used after reading the file. |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | 28 | protected function closeReader() |
|
76 | } |
||
77 |