Source API for the «PortePlugins_Csv» class

Add CSV import and export support to records or list of records by registering new methods "fromCsv", "toCsv" and "fromCsvFile" to table instances.

Note: this is a work in progress.

Public static methods

register

Register the plugin with a Porte instance.

_tableCallBefore

This method is not yet documented.

toCsv

This method is not yet documented.

fromCsv

This method is not yet documented.

fromCsvFile

Available options include:

  • length
  • delimiter
  • enclosure
  • properties
  • callbacks
  • preg_replace
return
Object
$table
Object
$file
Object[optional]
$options