You are here

protected function views_data_export_pdf_plugin_display_export::switch_output_file in Views Data Export PDF 7

Same name and namespace in other branches
  1. 7.2 plugins/views_data_export_pdf_plugin_display_export.inc \views_data_export_pdf_plugin_display_export::switch_output_file()

Switches the output file of the batched export to the specified file.

This can be used to change which type of file (PDF instead of HTML) is returned from the batch.

Parameters

object $new_output_file: The file entity that represents the new output file of the batch.

1 call to views_data_export_pdf_plugin_display_export::switch_output_file()
views_data_export_pdf_plugin_display_export::convert_batch_output_to_pdf in plugins/views_data_export_pdf_plugin_display_export.inc
Converts the output of the export from HTML to PDF formats.

File

plugins/views_data_export_pdf_plugin_display_export.inc, line 545
Contains the Views Data Export Display plug-in for PDF format.

Class

views_data_export_pdf_plugin_display_export
The PDF export display plug-in for Views Data Export.

Code

protected function switch_output_file($new_output_file) {
  $this->_output_file = $new_output_file;
  $this->batched_execution_state->fid = $new_output_file->fid;
}