You are here

public function webform_exporter_delimited::get_filename in Webform 7.4

Get full filename of the export file, including the extension.

Parameters

string $filename: The base filename of the export file.

Return value

string The full filename of the export file, including the extension.

Overrides webform_exporter::get_filename

1 call to webform_exporter_delimited::get_filename()
webform_exporter_delimited::set_headers in includes/exporters/webform_exporter_delimited.inc
Provide headers to the page when an export file is being downloaded.
1 method overrides webform_exporter_delimited::get_filename()
webform_exporter_excel_delimited::get_filename in includes/exporters/webform_exporter_excel_delimited.inc
Get full filename of the export file, including the extension.

File

includes/exporters/webform_exporter_delimited.inc, line 61

Class

webform_exporter_delimited
Webform exporter for creating CSV/TSV delimited files.

Code

public function get_filename($filename) {
  $extension = $this->delimiter === "\t" ? 'tsv' : 'csv';
  return $filename . '.' . $extension;
}