PHP Class Horde_Data_Outlookcsv, horde

Copyright 1999-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Jan Schneider ([email protected])
Author: Chuck Hagenbuch ([email protected])
Inheritance: extends Horde_Data_Csv
Show file Open project: horde/horde

Public Methods

Method Description
exportData ( array $data, boolean $header = false, array $export_mapping = [] ) : string Builds a CSV file from a given data structure and returns it as a string.

Method Details

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, array $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.
$export_mapping array TODO
return string The CSV data.