1 | <?php |
||
14 | class ExcelWriter implements Writer |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $filename; |
||
20 | |||
21 | /** |
||
22 | * @var null|string |
||
23 | */ |
||
24 | protected $sheet; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $type; |
||
30 | |||
31 | /** |
||
32 | * @var boolean |
||
33 | */ |
||
34 | protected $prependHeaderRow; |
||
35 | |||
36 | /** |
||
37 | * @var PHPExcel |
||
38 | */ |
||
39 | protected $excel; |
||
40 | |||
41 | /** |
||
42 | * @var integer |
||
43 | */ |
||
44 | protected $row = 1; |
||
45 | |||
46 | /** |
||
47 | * @param \SplFileObject $file File |
||
48 | * @param string $sheet Sheet title (optional) |
||
49 | * @param string $type Excel file type (defaults to Excel2007) |
||
50 | * @param boolean $prependHeaderRow |
||
51 | */ |
||
52 | 4 | public function __construct(\SplFileObject $file, $sheet = null, $type = 'Excel2007', $prependHeaderRow = false) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 4 | public function prepare() |
|
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | 4 | public function writeItem(array $item) |
|
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | 4 | public function finish() |
|
117 | } |
||
118 |