[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Data/ -> tsv.php (sommaire)

(pas de description)

Poids: 215 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Horde_Data_tsv:: (4 méthodes):
  importData()
  exportData()
  exportFile()
  nextStep()


Classe: Horde_Data_tsv  - X-Ref

Horde_Data implementation for tab-separated data (TSV).

$Horde: framework/Data/Data/tsv.php,v 1.23.10.10 2006/08/03 02:50:40 selsky Exp $

Copyright 1999-2006 Jan Schneider <jan@horde.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

importData($contents, $header = false, $delimiter = "\t")   X-Ref
Pas de description

exportData($data, $header = false)   X-Ref
Builds a TSV file from a given data structure and returns it as a
string.

param: array $data      A two-dimensional array containing the data set.
param: boolean $header  If true, the rows of $data are associative
return: string  The TSV data.

exportFile($filename, $data, $header = false)   X-Ref
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.

param: string $filename  The name of the file to be downloaded.
param: array $data       A two-dimensional array containing the data
param: boolean $header   If true, the rows of $data are associative

nextStep($action, $param = array()   X-Ref
Takes all necessary actions for the given import step, parameters and
form values and returns the next necessary step.

param: integer $action  The current step. One of the IMPORT_* constants.
param: array $param     An associative array containing needed
return: mixed  Either the next step as an integer constant or imported



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7