EmailNotification should provide a getter for pageStatus
authorMark A. Hershberger <mah@nichework.com>
Wed, 6 Sep 2017 00:42:21 +0000 (20:42 -0400)
committerLegoktm <legoktm@member.fsf.org>
Fri, 21 Dec 2018 01:36:33 +0000 (01:36 +0000)
Extensions that have hooks for
UpdateUserMailerFormattedPageStatus (to provide additional
pageStatus indicators) need a way to make sure that, when their
hook is called in SendWatchlistemailNotification, they only
notifications handling their pageStatus indicator.  This allows them
to fetch the protected property.

Bug: T175104
Change-Id: I2beb5b3576f2cd739dab16b9adf613c96636edd3

includes/mail/EmailNotification.php

index 739dbec..8a089f6 100644 (file)
@@ -75,6 +75,20 @@ class EmailNotification {
         */
        protected $editor;
 
         */
        protected $editor;
 
+       /**
+        * Extensions that have hooks for
+        * UpdateUserMailerFormattedPageStatus (to provide additional
+        * pageStatus indicators) need a way to make sure that, when their
+        * hook is called in SendWatchlistemailNotification, they only
+        * handle notifications using their pageStatus indicator.
+        *
+        * @since 1.33
+        * @return string
+        */
+       public function getPageStatus() {
+               return $this->pageStatus;
+       }
+
        /**
         * @deprecated since 1.27 use WatchedItemStore::updateNotificationTimestamp directly
         *
        /**
         * @deprecated since 1.27 use WatchedItemStore::updateNotificationTimestamp directly
         *