diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2018-09-21 01:53:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 01:53:37 +0300 |
commit | 2d2abcc9576079a8496ad8bd4a038ba07cf1fb2b (patch) | |
tree | 511d4c06b004d8162fb3cd2480252c25caa13a63 /core/Site.php | |
parent | a7f5d6478cfcff4cb2b9a19b40f2b526da8f1eea (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.php | 10 |
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, |