+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017 |
+ | Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2017
+ * @copyright CiviCRM LLC (c) 2004-2018
*/
/**
* Associated array of batch ids.
* @param string $exportFormat
* Export format.
+ * @param bool $downloadFile
+ * Download export file?.
*/
- public static function exportFinancialBatch($batchIds, $exportFormat) {
+ public static function exportFinancialBatch($batchIds, $exportFormat, $downloadFile) {
if (empty($batchIds)) {
CRM_Core_Error::fatal(ts('No batches were selected.'));
return;
CRM_Core_Error::fatal("Could not locate exporter: $exporterClass");
}
$export = array();
+ $exporter->_isDownloadFile = $downloadFile;
foreach ($batchIds as $batchId) {
// export only batches whose status is set to Exported.
$result = civicrm_api3('Batch', 'getcount', array(