TYPO3 CMS  TYPO3_6-2
toexport.inc.php File Reference

Go to the source code of this file.

Functions

 rs2csv (&$rs, $addtitles=true)
 
 rs2csvfile (&$rs, $fp, $addtitles=true)
 
 rs2csvout (&$rs, $addtitles=true)
 
 rs2tab (&$rs, $addtitles=true)
 
 rs2tabfile (&$rs, $fp, $addtitles=true)
 
 rs2tabout (&$rs, $addtitles=true)
 
 _adodb_export (&$rs, $sep, $sepreplace, $fp=false, $addtitles=true, $quote='"',$escquote = '"', $replaceNewLine=' ')
 

Function Documentation

◆ _adodb_export()

_adodb_export ( $rs,
  $sep,
  $sepreplace,
  $fp = false,
  $addtitles = true,
  $quote = '"',
  $escquote = '"',
  $replaceNewLine = ' ' 
)

Definition at line 63 of file toexport.inc.php.

References $rs, and $sep.

Referenced by rs2csv(), rs2csvfile(), rs2csvout(), rs2tab(), rs2tabfile(), and rs2tabout().

◆ rs2csv()

rs2csv ( $rs,
  $addtitles = true 
)
Version
V5.19 23-Apr-2014 (c) 2000-2014 John Lim (jlim::natsoft.com). All rights reserved. Released under both BSD license and Lesser GPL library license. Whenever there is any discrepancy between the two licenses, the BSD license will take precedence.

Code to export recordsets in several formats:

AS VARIABLE $s = rs2csv($rs); # comma-separated values $s = rs2tab($rs); # tab delimited

TO A FILE $f = fopen($path,'w'); rs2csvfile($rs,$f); fclose($f);

TO STDOUT rs2csvout($rs);

Definition at line 25 of file toexport.inc.php.

References $rs, and _adodb_export().

◆ rs2csvfile()

rs2csvfile ( $rs,
  $fp,
  $addtitles = true 
)

Definition at line 31 of file toexport.inc.php.

References $rs, and _adodb_export().

◆ rs2csvout()

rs2csvout ( $rs,
  $addtitles = true 
)

Definition at line 37 of file toexport.inc.php.

References $rs, and _adodb_export().

◆ rs2tab()

rs2tab ( $rs,
  $addtitles = true 
)

Definition at line 44 of file toexport.inc.php.

References $rs, and _adodb_export().

◆ rs2tabfile()

rs2tabfile ( $rs,
  $fp,
  $addtitles = true 
)

Definition at line 50 of file toexport.inc.php.

References $rs, and _adodb_export().

◆ rs2tabout()

rs2tabout ( $rs,
  $addtitles = true 
)

Definition at line 56 of file toexport.inc.php.

References $rs, and _adodb_export().