1 | <?php |
||
16 | class WorkbookManager extends WorkbookManagerAbstract |
||
17 | { |
||
18 | /** |
||
19 | * Maximum number of rows a ODS sheet can contain |
||
20 | * @see https://ask.libreoffice.org/en/question/8631/upper-limit-to-number-of-rows-in-calc/ |
||
21 | */ |
||
22 | protected static $maxRowsPerWorksheet = 1048576; |
||
23 | |||
24 | /** @var WorksheetManager Object used to manage worksheets */ |
||
25 | protected $worksheetManager; |
||
26 | |||
27 | /** @var FileSystemHelper Helper to perform file system operations */ |
||
28 | protected $fileSystemHelper; |
||
29 | |||
30 | /** @var StyleHelper Helper to apply styles */ |
||
31 | protected $styleHelper; |
||
32 | |||
33 | /** @var int Maximum number of columns among all the written rows */ |
||
34 | protected $maxNumColumns = 1; |
||
35 | |||
36 | /** |
||
37 | * @return int Maximum number of rows/columns a sheet can contain |
||
38 | */ |
||
39 | 31 | protected function getMaxRowsPerWorksheet() |
|
43 | |||
44 | /** |
||
45 | * @param Sheet $sheet |
||
46 | * @return string The file path where the data for the given sheet will be stored |
||
47 | */ |
||
48 | 43 | public function getWorksheetFilePath(Sheet $sheet) |
|
53 | |||
54 | /** |
||
55 | * Writes all the necessary files to disk and zip them together to create the final file. |
||
56 | * |
||
57 | * @param resource $finalFilePointer Pointer to the spreadsheet that will be created |
||
58 | * @return void |
||
59 | */ |
||
60 | 34 | protected function writeAllFilesToDiskAndZipThem($finalFilePointer) |
|
71 | } |