You are here

function webform_export_create_handler in Webform 6.3

Same name and namespace in other branches
  1. 5.2 webform_export.inc \webform_export_create_handler()
  2. 6.2 webform_export.inc \webform_export_create_handler()
  3. 7.4 includes/webform.export.inc \webform_export_create_handler()
  4. 7.3 includes/webform.export.inc \webform_export_create_handler()

Instantiates a new Webform handler based on the format.

1 call to webform_export_create_handler()
webform_results_export in includes/webform.report.inc
Generate a Excel-readable CSV file containing all submissions for a Webform.

File

includes/webform.export.inc, line 66
Provides several different handlers for exporting webform results.

Code

function webform_export_create_handler($format, $options) {
  $definition = webform_export_fetch_definition($format);
  if (isset($definition) && class_exists($definition['handler'])) {
    $handler = new $definition['handler']($options);
  }
  else {

    // TODO: Create a default broken exporter.
    $handler = new webform_exporter_broken($options);
  }
  return $handler;
}