public exportFile ( string $filename, array $data, boolean $header = false, $export_mapping = [] ) | ||
$filename | string | The name of the file to be downloaded. |
$data | array | A two-dimensional array containing the data set. |
$header | boolean | If true, the rows of $data are associative arrays with field names as their keys. |