You are here

class webform_exporter_excel in Webform 6.2

Same name and namespace in other branches
  1. 5.2 webform_export.inc \webform_exporter_excel
  2. 6.3 includes/webform.export.inc \webform_exporter_excel
  3. 7.3 includes/webform.export.inc \webform_exporter_excel

The Excel exporter currently is just a tab-delimited export.

Hierarchy

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