|
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(). | |
| notifyOnPageChange (RecentChange $recentChange) | |
| Send emails corresponding to the user $editor editing the page $title. | |
Find watchers and create notifications after a page is changed.
After an edit is published to RCFeed, RecentChange::save calls RecentChangeNotifier. 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 41 of file RecentChangeNotifier.php.
| MediaWiki\RecentChanges\RecentChangeNotifier::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 145 of file RecentChangeNotifier.php.
References MediaWiki\RecentChanges\RecentChange\getAttribute(), MediaWiki\User\Options\UserOptionsLookup\getOption(), MediaWiki\Permissions\Authority\getUser(), MediaWiki\Permissions\Authority\isAllowed(), and NS_USER_TALK.
| MediaWiki\RecentChanges\RecentChangeNotifier::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 52 of file RecentChangeNotifier.php.