Skip to content
Corex

CsvExportWriter

Corex\Config\Export\CsvExportWriter · class · Config layer

Writes an export as comma-separated text that a spreadsheet opens correctly when the file is double-clicked (spec 103, FR-017). That takes three things a plain CSV does not have: a byte-order mark, without which Excel reads UTF-8 as the machine’s local encoding and Arabic or accented names arrive garbled; the line ending Excel writes itself; and a separator the reader’s region expects. A document with several sheets becomes one file per sheet in an archive, because each has its own columns (FR-018).

write(ExportDocument $document, string $pathWithoutExtension): ExportFile

Section titled “write(ExportDocument $document, string $pathWithoutExtension): ExportFile”