public function webform_exporter_excel_xlsx::bof in Webform 7.4
Output space for the BOF.
Our beginning of file needs to include unknown data (the number of columns and rows) at this point. Instead of writing the true BOF, we output enough empty space to fill in the BOF later. See webform_exporter_excel_xlsx::eof().
Overrides webform_exporter::bof
File
- includes/
exporters/ webform_exporter_excel_xlsx.inc, line 109
Class
- webform_exporter_excel_xlsx
- This exporter creates an XLSX file readable by newer versions of Excel.
Code
public function bof(&$file_handle) {
$output = str_repeat(' ', 1024);
@fwrite($file_handle, $output . "\n");
}