From 57bd5cdad50b8f48700911142e0a3eb86d8c37d8 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Mon, 30 May 2016 23:00:56 +0200 Subject: [PATCH] CRM-18697 - Make getFileExtension abstract. ---------------------------------------- * CRM-18697: Make it possible to add new ExportFormats via extensions https://issues.civicrm.org/jira/browse/CRM-18697 --- CRM/Financial/BAO/ExportFormat.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CRM/Financial/BAO/ExportFormat.php b/CRM/Financial/BAO/ExportFormat.php index ad6dfcf9d2..eccaf9527c 100644 --- a/CRM/Financial/BAO/ExportFormat.php +++ b/CRM/Financial/BAO/ExportFormat.php @@ -95,11 +95,14 @@ abstract class CRM_Financial_BAO_ExportFormat { } /** + * Returns some kind of identification for your export format. + * + * This does not really has to be a file extension, you can name your + * file as you wish as you override output. + * * @return string */ - public function getFileExtension() { - return 'txt'; - } + public abstract function getFileExtension(); /** * @return object -- 2.25.1