Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

Library for CSV serialization. This is used by the csv/proxy driver and is the CacheExecute() serialization format.

Copyright: 2000-2013 John Lim
Copyright: 2014 Damien Regad, Mark Newnham and the ADOdb community
License: BSD-3-Clause
License: LGPL-2.1-or-later
File Size: 319 lines (9 kb)
Included or required: 4 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions


Functions that are not part of a class:

_rs2serialize(&$rs,$conn=false,$sql='')   X-Ref
convert a recordset into special format

return: the CSV formatted data
param: rs    the recordset

csv2rs($url,&$err,$timeout=0, $rsclass='ADORecordSet_array')   X-Ref
Open CSV file and convert it into Data.

return: recordset, or false if error occurred. If no
param: url          file/ftp/http url
param: err        returns the error message
param: timeout    dispose if recordset has been alive for $timeout secs

adodb_write_file($filename, $contents,$debug=false)   X-Ref
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)