1 | <?php |
||
16 | class WorkbookManager extends WorkbookManagerAbstract |
||
17 | { |
||
18 | /** |
||
19 | * Maximum number of rows a XLSX sheet can contain |
||
20 | * @see http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010073849.aspx |
||
21 | */ |
||
22 | protected static $maxRowsPerWorksheet = 1048576; |
||
23 | |||
24 | /** @var WorksheetManager Object used to manage worksheets */ |
||
25 | protected $worksheetManager; |
||
26 | |||
27 | /** @var StyleManager Manages styles */ |
||
28 | protected $styleManager; |
||
29 | |||
30 | /** @var FileSystemHelper Helper to perform file system operations */ |
||
31 | protected $fileSystemHelper; |
||
32 | |||
33 | /** |
||
34 | * @return int Maximum number of rows/columns a sheet can contain |
||
35 | */ |
||
36 | protected function getMaxRowsPerWorksheet() |
||
37 | { |
||
38 | return self::$maxRowsPerWorksheet; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param Sheet $sheet |
||
43 | * @return string The file path where the data for the given sheet will be stored |
||
44 | */ |
||
45 | 40 | public function getWorksheetFilePath(Sheet $sheet) |
|
50 | |||
51 | /** |
||
52 | * Closes custom objects that are still opened |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | 4 | protected function closeRemainingObjects() |
|
60 | |||
61 | /** |
||
62 | * Writes all the necessary files to disk and zip them together to create the final file. |
||
63 | * |
||
64 | * @param resource $finalFilePointer Pointer to the spreadsheet that will be created |
||
65 | * @return void |
||
66 | */ |
||
67 | 4 | protected function writeAllFilesToDiskAndZipThem($finalFilePointer) |
|
78 | } |