function views_data_export_plugin_display_export::transfer_file in Views data export 6.3
Same name and namespace in other branches
- 6 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::transfer_file()
- 6.2 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::transfer_file()
- 7.4 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::transfer_file()
- 7 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::transfer_file()
- 7.3 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::transfer_file()
Transfer the output file to the client.
1 call to views_data_export_plugin_display_export::transfer_file()
- views_data_export_plugin_display_export::execute_final in plugins/
views_data_export_plugin_display_export.inc - Renders the final page We should be free of the batch at this point
File
- plugins/
views_data_export_plugin_display_export.inc, line 474 - Contains the bulk export display plugin.
Class
- views_data_export_plugin_display_export
- The plugin that batches its rendering.
Code
function transfer_file() {
// Build the view so we can set the headers.
$this->view
->build();
// Arguments can cause the style to not get built.
if (!$this->view
->init_style()) {
$this->view->build_info['fail'] = TRUE;
}
// Set the headers.
$this
->add_http_headers();
file_transfer($this
->outputfile_path(), array());
}