Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/adodb/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 ( &$  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.

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.

Here is the caller graph for this function:

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.


Variable Documentation

$ADODB_INCLUDED_CSV = 1

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

 All Data Structures Namespaces Files Functions Variables Enumerations