module training - export csv with ";" instead of "," as column delimiter

This commit is contained in:
Rodney Figaro 2017-03-23 15:23:52 +01:00
parent e287172313
commit 9cb93b6ccf

View File

@ -88,15 +88,15 @@ class CSVWriter
ob_start();
if (is_array($this->header)) {
fwrite($output, implode(',', $this->header).PHP_EOL);
fwrite($output, implode(';', $this->header).PHP_EOL);
}
foreach($this->lines as $line) {
fwrite($output, implode(',', $line).PHP_EOL);
fwrite($output, implode(';', $line).PHP_EOL);
}
if (is_array($this->footer)) {
fwrite($output, implode(',', $this->footer).PHP_EOL);
fwrite($output, implode(';', $this->footer).PHP_EOL);
}
$this->buffer = ob_get_clean();