1 | <?php |
||
20 | class CompatibilityFactory |
||
21 | { |
||
22 | /** |
||
23 | * @var ExcelFactory |
||
24 | */ |
||
25 | private $factory; |
||
26 | |||
27 | 11 | public function __construct(ExcelFactory $factory = null) |
|
31 | |||
32 | /** |
||
33 | * Creates an empty Spreadsheet Object if the filename is empty, otherwise loads the file into the object. |
||
34 | * |
||
35 | * @param string $filename |
||
36 | * |
||
37 | * @return Spreadsheet |
||
38 | */ |
||
39 | 6 | public function createPHPExcelObject($filename = null) |
|
43 | |||
44 | /** |
||
45 | * @return Drawing |
||
46 | */ |
||
47 | 2 | public function createPHPExcelWorksheetDrawing() |
|
51 | |||
52 | /** |
||
53 | * Create a reader |
||
54 | * |
||
55 | * @param string $type |
||
56 | * |
||
57 | * @return IReader |
||
58 | */ |
||
59 | 2 | public function createReader($type = 'Xlsx') |
|
63 | |||
64 | /** |
||
65 | * Create a writer given the PHPExcelObject and the type, |
||
66 | * |
||
67 | * @param Spreadsheet $phpExcelObject |
||
68 | * @param string $type |
||
69 | * @return IWriter |
||
70 | */ |
||
71 | 5 | public function createWriter(Spreadsheet $phpExcelObject, $type = 'Xlsx') |
|
75 | |||
76 | /** |
||
77 | * Stream the file as Response. |
||
78 | * |
||
79 | * @param IWriter $writer |
||
80 | * @param int $status |
||
81 | * @param array $headers |
||
82 | * |
||
83 | * @return StreamedResponse |
||
84 | */ |
||
85 | 2 | public function createStreamedResponse(IWriter $writer, $status = 200, $headers = array()) |
|
89 | |||
90 | /** |
||
91 | * Create a PHPExcel Helper HTML Object |
||
92 | * |
||
93 | * @return Html |
||
94 | */ |
||
95 | 5 | public function createHelperHTML() |
|
99 | } |
||
100 |