* @author Tim Starling
* @author Luke Welling lwelling@wikimedia.org
*/
-use MediaWiki\Linker\LinkTarget;
+use MediaWiki\Linker\LinkTarget;
use MediaWiki\MediaWikiServices;
/**
*/
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
*
/**
* Does the per-user customizations to a notification e-mail (name,
* timestamp in proper timezone, etc) and sends it out.
- * Returns true if the mail was sent successfully.
+ * Returns Status if email was sent successfully or not (Status::newGood()
+ * or Status::newFatal() respectively).
*
* @param User $watchingUser
* @param string $source
- * @return bool
+ * @return Status
* @private
*/
function sendPersonalised( $watchingUser, $source ) {