by overriding export_file_extension() method
// Export functions
+ function export_file_extension() {
+ /// return the files extension appropriate for this type
+ /// override if you don't want .txt
+
+ return ".txt";
+ }
+
function exportpreprocess($category, $course) {
/// Does any pre-processing that may be desired
}
// write file
- $filepath = $path."/".$filename;
+ $filepath = $path."/".$filename . $this->export_file_extension();
if (!$fh=fopen($filepath,"w")) {
error("Cannot open for writing: $filepath");
}