Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2020-08-20 23:55:05 +0300
committerGitHub <noreply@github.com>2020-08-20 23:55:05 +0300
commit8dfe273a96f681d0f8c6d1491bdd206cbaf8c04b (patch)
treeea9326665bbd8f4733192cd772d76048c0513f5c /core
parente08e8551f316e299b47eda5e3ce550ef3ff8265a (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.php7
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;
+ }
}