class webform_exporter_excel in Webform 6.2
Same name and namespace in other branches
- 5.2 webform_export.inc \webform_exporter_excel
- 6.3 includes/webform.export.inc \webform_exporter_excel
- 7.3 includes/webform.export.inc \webform_exporter_excel
The Excel exporter currently is just a tab-delimited export.
Hierarchy
- class \webform_exporter
- class \webform_exporter_delimited
- class \webform_exporter_excel
- class \webform_exporter_delimited
Expanded class hierarchy of webform_exporter_excel
1 string reference to 'webform_exporter_excel'
- webform_webform_exporters in ./
webform_export.inc - Implementation of hook_webform_exporters().
File
- ./
webform_export.inc, line 153 - Provides several different handlers for exporting webform results.
View source
class webform_exporter_excel extends webform_exporter_delimited {
var $delimiter;
function webform_exporter_excel($options) {
$options['delimiter'] = '\\t';
parent::webform_exporter_delimited($options);
}
function set_headers($filename) {
drupal_set_header('Content-Type: application/x-msexcel');
drupal_set_header("Content-Disposition: attachment; filename={$filename}.xls");
drupal_set_header('Pragma: public');
drupal_set_header('Cache-Control: max-age=0');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
webform_exporter:: |
function | |||
webform_exporter_delimited:: |
function |
Overrides webform_exporter:: |
||
webform_exporter_delimited:: |
function |
Overrides webform_exporter:: |
||
webform_exporter_delimited:: |
function | |||
webform_exporter_excel:: |
property |
Overrides webform_exporter_delimited:: |
||
webform_exporter_excel:: |
function |
Overrides webform_exporter_delimited:: |
||
webform_exporter_excel:: |
function |