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:
authordiosmosis <diosmosis@users.noreply.github.com>2018-09-21 01:53:37 +0300
committerGitHub <noreply@github.com>2018-09-21 01:53:37 +0300
commit2d2abcc9576079a8496ad8bd4a038ba07cf1fb2b (patch)
tree511d4c06b004d8162fb3cd2480252c25caa13a63 /core/Site.php
parenta7f5d6478cfcff4cb2b9a19b40f2b526da8f1eea (diff)
Send email if no tracked data within N days. (#13363)
* Remember user who created a site. * Send email if no tracked data within N days. * Add test and get to pass. * Fixes after manual tests of emails * Bump version & change column name to creator_login. * Email tweaks. * Rename Site::getCreationUserFor * Modify Site:: access methiod name * Applying PR feedback. * Move email HTML content generation logic to separate class in DI. * tweak translations * Apply PR review feedback. * Couple more tweaks. * Make tracking code check a one time task + and save timetable when removing inactive tasks. * Update save call. * Apply more PR feedback. * small performance tweak and put the site name in quotes * Fixing tests. * Update expected file.
Diffstat (limited to 'core/Site.php')
-rw-r--r--core/Site.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/Site.php b/core/Site.php
index 1aab6c3d61..3ab026b43b 100644
--- a/core/Site.php
+++ b/core/Site.php
@@ -393,6 +393,16 @@ class Site
}
/**
+ * Returns the user that created this site.
+ *
+ * @return string|null If null, the site was created before the creation user was tracked.
+ */
+ public function getCreatorLogin()
+ {
+ return $this->get('creator_login');
+ }
+
+ /**
* Checks the given string for valid site IDs and returns them as an array.
*
* @param string|array $ids Comma separated idSite list, eg, `'1,2,3,4'` or an array of IDs, eg,