Class CMS_array2csv

Description

Class CMS_array2csv

Create a CSV file (CMS_file) from a given array

Located in /automne/classes/pageContent/array2csv.php (line 24)

CMS_grandFather
   |
   --CMS_array2csv
Method Summary
 void __construct ( $filename, [ $filepath = PATH_TMP_FS], [ $separator = ';'], [ $enclosure = '"'], string $filename,, string $filepath,, string $separator,, string $enclosure,)
 boolean addDatas ( $datas, array $datas,)
 void getFilename ([ $withpath = false])
 void getFilepath ()
Methods
Constructor __construct (line 70)

Constructor

void __construct ( $filename, [ $filepath = PATH_TMP_FS], [ $separator = ';'], [ $enclosure = '"'], string $filename,, string $filepath,, string $separator,, string $enclosure,)
  • string $filename,: the filename to use. io::sanitizeAsciiString will be used to clean this filename
  • string $filepath,: the filepath to use (FS relativeà). The path must exists and be writable. Default : PATH_TMP_FS
  • string $separator,: the CSV fields separator (default ;)
  • string $enclosure,: the CSV fields enclosure (default ")
  • $filename
  • $filepath
  • $separator
  • $enclosure
addDatas (line 104)

Add datas to current CSV file

boolean addDatas ( $datas, array $datas,)
  • array $datas,: the datas to add to current csv file. Allow use of array(array(datas)) to add multi lines to CSV file in one pass
  • $datas
getFile (line 129)

Get current CSV file

  • return: : the CSV file
CMS_file getFile ()
getFilename (line 86)
void getFilename ([ $withpath = false])
  • $withpath
getFilepath (line 94)
void getFilepath ()

Inherited Methods

Inherited From CMS_grandFather

 CMS_grandFather::autoload()
 CMS_grandFather::hasError()
 CMS_grandFather::log()
 CMS_grandFather::PHPErrorHandler()
 CMS_grandFather::raiseError()
 CMS_grandFather::setDebug()
 CMS_grandFather::setLog()
 CMS_grandFather::_raiseError()
 CMS_grandFather::__call()
Class Constants

Documentation generated on Wed, 15 Feb 2012 15:28:25 +0100 by phpDocumentor 1.4.3