Class Horde_Data_Tsv
Horde_Data implementation for tab-separated data (TSV).
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_Tsv
Package: Data
Category: Horde
Author: Jan Schneider jan@horde.org
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Data/Tsv.php
Category: Horde
Author: Jan Schneider jan@horde.org
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Data/Tsv.php
public
array
|
#
importData( string $contents, boolean $header = false, string $delimiter = "\t" )
Convert data file contents to list of data records. |
public
string
|
#
exportData( array $data, boolean $header = false )
Builds a TSV file from a given data structure and returns it as a string. |
public
|
#
exportFile( string $filename, array $data, boolean $header = false )
Builds a TSV 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
|
__construct(),
cleanup(),
getContentType(),
getFilename(),
getNewline(),
importFile(),
warnings()
|