function views_data_export_plugin_style_export::render_footer in Views data export 7.4
Same name and namespace in other branches
- 6.3 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::render_footer()
- 6 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::render_footer()
- 6.2 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::render_footer()
- 7 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::render_footer()
- 7.3 plugins/views_data_export_plugin_style_export.inc \views_data_export_plugin_style_export::render_footer()
1 call to views_data_export_plugin_style_export::render_footer()
- views_data_export_plugin_style_export::render in plugins/
views_data_export_plugin_style_export.inc - Render the display in this style.
File
- plugins/
views_data_export_plugin_style_export.inc, line 314 - Plugin include file for export style plugin.
Class
- views_data_export_plugin_style_export
- Generalized style plugin for export plugins.
Code
function render_footer($file = null) {
// Return a value if we haven't been given a file to write to.
$return_a_value = is_null($file);
if ($return_a_value) {
$file = fopen('php://memory', 'w+');
}
// TODO Get the actual row and column counts!
$this
->get_exporter()
->eof($file, 1, 1);
// Return a value if we haven't been given a file to write to.
if ($return_a_value) {
// Read from file and verify contents.
fseek($file, 0);
$contents = '';
while (!feof($file)) {
$contents .= fread($file, 8192);
}
// Close up the file stream.
fclose($file);
return $contents;
}
}