exportData() public method

Builds a CSV file from a given data structure and returns it as a string.
public exportData ( array $data, boolean $header = false, $export_mapping = [] ) : string
$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.
return string The CSV data.
Esempio n. 1
0
 public function exportData($data, $header = true, $export_mapping = array())
 {
     return parent::exportData($this->_map($data), $header, $export_mapping);
 }