Class Horde_Data_Csv
Horde_Data implementation for comma-separated data (CSV).
Copyright 1999-2012 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.
- Horde_Data_Base
- Horde_Data_Csv
Direct known subclasses
Horde_Data_Outlookcsv
Package: Data
Category: Horde
Author: Jan Schneider jan@horde.org
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Data/Csv.php
Category: Horde
Author: Jan Schneider jan@horde.org
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Data/Csv.php
public
|
|
public
array
|
#
importFile( string $filename, boolean $header = false, string $sep = ',', string $quote = '', integer $fields = null, string $import_mapping = array(), string $charset = null, mixed $crlf = null )
Imports and parses a CSV file. |
public
string
|
#
exportData( array $data, boolean $header = false, mixed $export_mapping = array() )
Builds a CSV file from a given data structure and returns it as a string. |
public
|
#
exportFile( string $filename, array $data, boolean $header = false, mixed $export_mapping = array() )
Builds a CSV file from a given data structure and triggers its download. It DOES NOT exit the current script but only outputs the correct headers and data. |
public
mixed
|
cleanup(),
getContentType(),
getFilename(),
getNewline(),
importData(),
warnings()
|