Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Update export routine.
James Cole77e52f42a6dd
diff --git a/app/Export/Processor.php b/app/Export/Processor.phpindex 90ff2d8692..cbbdd2736b 100644--- a/app/Export/Processor.php+++ b/app/Export/Processor.php@@ -53,21 +53,12 @@ class Processor implements ProcessorInterface/*** Processor constructor.- *- * @param array $settings*/- public function __construct(array $settings)+ public function __construct(){- // save settings- $this->settings = $settings;- $this->accounts = $settings['accounts'];- $this->exportFormat = $settings['exportFormat'];- $this->includeAttachments = $settings['includeAttachments'];- $this->includeOldUploads = $settings['includeOldUploads'];- $this->job = $settings['job'];- $this->journals = new Collection;- $this->exportEntries = new Collection;- $this->files = new Collection;+ $this->journals = new Collection;+ $this->exportEntries = new Collection;+ $this->files = new Collection;}@@ -185,6 +176,20 @@ class Processor implements ProcessorInterfacereturn $this->files;}+ /**+ * @param array $settings+ */+ public function setSettings(array $settings)+ {+ // save settings+ $this->settings = $settings;+ $this->accounts = $settings['accounts'];+ $this->exportFormat = $settings['exportFormat'];+ $this->includeAttachments = $settings['includeAttachments'];+ $this->includeOldUploads = $settings['includeOldUploads'];+ $this->job = $settings['job'];+ }+/****/diff --git a/app/Export/ProcessorInterface.php b/app/Export/ProcessorInterface.phpindex 614d748304..540dbcaf37 100644--- a/app/Export/ProcessorInterface.php+++ b/app/Export/ProcessorInterface.php@@ -25,11 +25,8 @@ interface ProcessorInterface/*** Processor constructor.- *- * @param array $settings- **/- public function __construct(array $settings);+ public function __construct();/*** @return bool@@ -65,4 +62,9 @@ interface ProcessorInterface* @return Collection*/public function getFiles(): Collection;++ /**+ * @param array $settings+ */+ public function setSettings(array $settings);}