diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-08-20 23:55:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 23:55:05 +0300 |
commit | 8dfe273a96f681d0f8c6d1491bdd206cbaf8c04b (patch) | |
tree | ea9326665bbd8f4733192cd772d76048c0513f5c /core | |
parent | e08e8551f316e299b47eda5e3ce550ef3ff8265a (diff) |
add convenience method for handling partial archiving in Archiver.php (#16326)
* convenience method
* fixing build
Diffstat (limited to 'core')
-rw-r--r-- | core/Plugin/Archiver.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Plugin/Archiver.php b/core/Plugin/Archiver.php index ca95c80895..2763c4677b 100644 --- a/core/Plugin/Archiver.php +++ b/core/Plugin/Archiver.php @@ -182,4 +182,11 @@ abstract class Archiver { return false; } + + protected function isRequestedReport(string $reportName) + { + $requestedReport = $this->getProcessor()->getParams()->getArchiveOnlyReport(); + + return empty($requestedReport) || $requestedReport == $reportName; + } } |