|
File download exporter. Can write any string to a file and send it as download to the browser. Located in /utils/class.atkfileexport.inc [line 30] Author(s):
|
|
Export data to a download file.
BROWSER BUG: IE has problems with the use of attachment; needs atachment (someone at MS can't spell) or none. however ns under version 6 accepts this also. NS 6+ has problems with the absense of attachment; and the misspelling of attachment; at present ie 5 on mac gives wrong filename and NS 6+ gives wrong filename.
Parameters:| String | $data: | The content |
| String | $fileName: | Filename for the download |
| String | $ext: | Extension of the file |
| String | $type: | The type (csv / excel / xml) |
| String | $compression: | Compression method (bzip / gzip) |
| Todo: | Currently supports only csv/excel mimetypes. |
