mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Update export routine.
This commit is contained in:
@@ -53,18 +53,9 @@ class Processor implements ProcessorInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Processor constructor.
|
* 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->journals = new Collection;
|
||||||
$this->exportEntries = new Collection;
|
$this->exportEntries = new Collection;
|
||||||
$this->files = new Collection;
|
$this->files = new Collection;
|
||||||
@@ -185,6 +176,20 @@ class Processor implements ProcessorInterface
|
|||||||
return $this->files;
|
return $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'];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@@ -25,11 +25,8 @@ interface ProcessorInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Processor constructor.
|
* Processor constructor.
|
||||||
*
|
|
||||||
* @param array $settings
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $settings);
|
public function __construct();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
@@ -65,4 +62,9 @@ interface ProcessorInterface
|
|||||||
* @return Collection
|
* @return Collection
|
||||||
*/
|
*/
|
||||||
public function getFiles(): Collection;
|
public function getFiles(): Collection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $settings
|
||||||
|
*/
|
||||||
|
public function setSettings(array $settings);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user