You are here

function webform_export_create_handler in Webform 7.4

Same name and namespace in other branches
  1. 5.2 webform_export.inc \webform_export_create_handler()
  2. 6.3 includes/webform.export.inc \webform_export_create_handler()
  3. 6.2 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.

7 calls to webform_export_create_handler()
webform_results_batch_bof in includes/webform.report.inc
Batch API callback; Write the opening byte in the export file.
webform_results_batch_eof in includes/webform.report.inc
Batch API callback; Write the closing bytes in the export file.
webform_results_batch_headers in includes/webform.report.inc
Batch API callback; Write the headers of the export to the export file.
webform_results_batch_post_process in includes/webform.report.inc
Batch API callback; Do any last processing on the finished export.
webform_results_batch_rows in includes/webform.report.inc
Batch API callback; Write the rows of the export to the export file.

... See full list

File

includes/webform.export.inc, line 96
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['file'])) {
    include_once $definition['file'];
  }
  if (isset($definition)) {
    $handler = new $definition['handler']($options);
  }
  else {

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