From af09585b1b8fb4710ab34989c211d5d85236eb9d Mon Sep 17 00:00:00 2001
From: Jaap Jansma <jaap.jansma@civicoop.org>
Date: Mon, 29 Apr 2019 16:41:39 +0200
Subject: [PATCH] refactored output

---
 CRM/DataprocessorOutputExport/CSV.php | 40 ++++++++++++++++++++++++---
 1 file changed, 36 insertions(+), 4 deletions(-)

diff --git a/CRM/DataprocessorOutputExport/CSV.php b/CRM/DataprocessorOutputExport/CSV.php
index e6c02662..6f269250 100644
--- a/CRM/DataprocessorOutputExport/CSV.php
+++ b/CRM/DataprocessorOutputExport/CSV.php
@@ -15,15 +15,47 @@ class CRM_DataprocessorOutputExport_CSV implements ExportOutputInterface {
   const RECORDS_PER_JOB = 250;
 
   /**
-   * Return the url to a configuration page.
-   * Or return false when no configuration page exists.
+   * Returns true when this filter has additional configuration
    *
-   * @return string|false
+   * @return bool
+   */
+  public function hasConfiguration() {
+    return false;
+  }
+
+  /**
+   * When this filter type has additional configuration you can add
+   * the fields on the form with this function.
+   *
+   * @param \CRM_Core_Form $form
+   * @param array $filter
+   */
+  public function buildConfigurationForm(\CRM_Core_Form $form, $output=array()) {
+
+  }
+
+  /**
+   * When this filter type has configuration specify the template file name
+   * for the configuration form.
+   *
+   * @return false|string
    */
-  public function getConfigurationUrl() {
+  public function getConfigurationTemplateFileName() {
     return false;
   }
 
+
+  /**
+   * Process the submitted values and create a configuration array
+   *
+   * @param $submittedValues
+   * @param array $output
+   * @return array
+   */
+  public function processConfiguration($submittedValues, &$output) {
+    return array();
+  }
+
   /**
    * Returns the mime type of the export file.
    *
-- 
GitLab