TYPO3 CMS  TYPO3_6-2
adodb-csvlib.inc.php File Reference

Go to the source code of this file.

Functions

 _rs2serialize (&$rs, $conn=false, $sql='')
 
 csv2rs ($url, &$err, $timeout=0, $rsclass='ADORecordSet_array')
 
 adodb_write_file ($filename, $contents, $debug=false)
 

Variables

global $ADODB_INCLUDED_CSV = 1
 

Function Documentation

◆ _rs2serialize()

_rs2serialize ( $rs,
  $conn = false,
  $sql = '' 
)

convert a recordset into special format

Parameters
rsthe recordset
Returns
the CSV formated data

Definition at line 34 of file adodb-csvlib.inc.php.

References $conn, $rs, and $sql.

◆ adodb_write_file()

adodb_write_file (   $filename,
  $contents,
  $debug = false 
)

Save a file $filename and its $contents (normally for caching) with file locking Returns true if ok, false if fopen/fwrite error, 0 if rename error (eg. file is locked)

Definition at line 267 of file adodb-csvlib.inc.php.

Referenced by ADODB_Active_Record\UpdateActiveTable().

◆ csv2rs()

csv2rs (   $url,
$err,
  $timeout = 0,
  $rsclass = 'ADORecordSet_array' 
)

Open CSV file and convert it into Data.

Parameters
urlfile/ftp/http url
errreturns the error message
timeoutdispose if recordset has been alive for $timeout secs
Returns
recordset, or false if error occured. If no error occurred in sql INSERT/UPDATE/DELETE, empty recordset is returned

Definition at line 94 of file adodb-csvlib.inc.php.

References $rs.

Variable Documentation

◆ $ADODB_INCLUDED_CSV

$ADODB_INCLUDED_CSV = 1

Definition at line 6 of file adodb-csvlib.inc.php.