1 | <?php |
||
10 | class CsvWriter extends AbstractStreamWriter |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $delimiter = ';'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $enclosure = '"'; |
||
21 | |||
22 | /** |
||
23 | * @var boolean |
||
24 | */ |
||
25 | private $utf8Encoding = false; |
||
26 | private $row = 1; |
||
27 | |||
28 | /** |
||
29 | * @var boolean |
||
30 | */ |
||
31 | protected $prependHeaderRow; |
||
32 | |||
33 | /** |
||
34 | * @param string $delimiter The delimiter |
||
35 | * @param string $enclosure The enclosure |
||
36 | * @param resource $stream |
||
37 | * @param boolean $utf8Encoding |
||
38 | */ |
||
39 | 4 | public function __construct($delimiter = ';', $enclosure = '"', $stream = null, $utf8Encoding = false, $prependHeaderRow = false) |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 4 | public function prepare() |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 4 | public function writeItem(array $item) |
|
72 | } |
||
73 |