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
diff options
context:
space:
mode:
authorJason Morton <JasonMortonNZ@users.noreply.github.com>2021-09-20 07:17:33 +0300
committerGitHub <noreply@github.com>2021-09-20 07:17:33 +0300
commit7e3e36e2f6107f5a0556af545f1db56eef3d5080 (patch)
tree85c75dbc8918f88b6280eba38cfc905c9b05b99b /plugins
parent81cb72edb8e0731d20cc047b0327bcbaddea28b9 (diff)
Add ScheduledReportEmail class (#18033)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ScheduledReports/ReportEmailGenerator.php2
-rw-r--r--plugins/ScheduledReports/ScheduledReportEmail.php21
2 files changed, 22 insertions, 1 deletions
diff --git a/plugins/ScheduledReports/ReportEmailGenerator.php b/plugins/ScheduledReports/ReportEmailGenerator.php
index d51f9df098..2506e8bed2 100644
--- a/plugins/ScheduledReports/ReportEmailGenerator.php
+++ b/plugins/ScheduledReports/ReportEmailGenerator.php
@@ -15,7 +15,7 @@ abstract class ReportEmailGenerator
{
public function makeEmail(GeneratedReport $report, $customReplyTo = null)
{
- $mail = new Mail();
+ $mail = new ScheduledReportEmail();
$mail->setDefaultFromPiwik();
$mail->setSubject($report->getReportDescription());
diff --git a/plugins/ScheduledReports/ScheduledReportEmail.php b/plugins/ScheduledReports/ScheduledReportEmail.php
new file mode 100644
index 0000000000..6f34512bbc
--- /dev/null
+++ b/plugins/ScheduledReports/ScheduledReportEmail.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Matomo - free/libre analytics platform
+ *
+ * @link https://matomo.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ */
+
+namespace Piwik\Plugins\ScheduledReports;
+
+use Piwik\Mail;
+
+/**
+ * This class exists so that scheduled report emails can
+ * be identified by plugins that listen to Mail events.
+ */
+class ScheduledReportEmail extends Mail
+{
+
+} \ No newline at end of file