Class miCsvExportAction

Description

Support for CSV export

  • copyright: Copyright (c) 2006 Mirchev Ideas Ltd. All rights reserved.

Located in /control/CsvExport.php (line 13)

miAction
   |
   --miCsvExportAction
Class Constant Summary
Variable Summary
string $_csvFilename
Method Summary
void doAction ()
string escapeCsv (string $value)
void exportRecords (array $records)
Variables
string $_csvFilename = 'export.csv' (line 23)

The filename to suggest to the user If the filename contains special chars it must be escaped in quoted printable format

  • access: protected

Inherited Variables

Inherited from miAction

miAction::$_view
Methods
doAction (line 96)

Performs the export as CSV action

  • access: public
void doAction ()

Redefinition of:
miAction::doAction()
Performs the action
escapeCsv (line 50)

Escape a single CSV value If it detects a comma then it double quotes the string. Then double quotes themselves are escaped by doubling

  • access: protected
string escapeCsv (string $value)
  • string $value
exportRecords (line 69)

Exports the records as CSV

  • access: protected
void exportRecords (array $records)
  • array $records
showCsvExportHeaders (line 30)

Print export headers

  • access: protected
void showCsvExportHeaders ()

Inherited Methods

Inherited From miAction

miAction::__construct()
miAction::doAction()
Class Constants
CSV_LINE_DELIMITER = "\n" (line 14)

Documentation generated on Thu, 08 May 2008 16:57:18 +0300 by phpDocumentor 1.4.1