MediaWiki master
|
Find watchers and create notifications after a page is changed. More...
Public Member Functions | |
actuallyNotifyOnPageChange (Authority $editor, $title, RecentChange $recentChange, array $watchers, $pageStatus='changed') | |
Immediate version of notifyOnPageChange(). | |
getPageStatus () | |
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. | |
notifyOnPageChange (RecentChange $recentChange) | |
Send emails corresponding to the user $editor editing the page $title. | |
Protected Attributes | |
string | $pageStatus = '' |
Find watchers and create notifications after a page is changed.
After an edit is published to RCFeed, RecentChange::save calls EmailNotification. Here we query the watchlist
table (via WatchedItemStore) to find who is watching a given page, format the emails in question, and dispatch notifications to each of them via the JobQueue.
Visit the documentation pages under https://www.mediawiki.org/wiki/Help:Watching_pages
Definition at line 53 of file EmailNotification.php.
EmailNotification::actuallyNotifyOnPageChange | ( | Authority | $editor, |
$title, | |||
RecentChange | $recentChange, | ||
array | $watchers, | ||
$pageStatus = 'changed' ) |
Immediate version of notifyOnPageChange().
Send emails corresponding to the user $editor editing the page $title.
Authority | $editor | |
Title | $title | |
RecentChange | $recentChange | |
array | $watchers | Array of user IDs |
string | $pageStatus |
Definition at line 170 of file EmailNotification.php.
References MediaWiki\RecentChanges\RecentChange\getAttribute(), MediaWiki\User\Options\UserOptionsLookup\getOption(), MediaWiki\Permissions\Authority\getUser(), MediaWiki\Permissions\Authority\isAllowed(), and NS_USER_TALK.
EmailNotification::getPageStatus | ( | ) |
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.
Definition at line 67 of file EmailNotification.php.
EmailNotification::notifyOnPageChange | ( | RecentChange | $recentChange | ) |
Send emails corresponding to the user $editor editing the page $title.
May be deferred via the job queue.
RecentChange | $recentChange |
Definition at line 82 of file EmailNotification.php.
|
protected |
Definition at line 55 of file EmailNotification.php.