|
| __construct (LoggerInterface $logger, UserOptionsManager $userOptionsManager, IBufferingStatsdDataFactory $statsdDataFactory) |
|
| saveUserOptions (UserIdentity $userIdentity, array $options) |
| Save user settings.
|
|
|
const | PREFERENCE_NAME = 'global-watchlist-options' |
| Name for the user option in the database with the user's global watchlist settings.
|
|
const | PREFERENCE_VERSION = 1 |
| Latest version of the format the settings are in, in case it changes.
|
|
const | FILTER_EITHER = 0 |
| Make the code clearer by using constants instead of 0, 1, or 2 to represent the filter statuses.
|
|
const | FILTER_REQUIRE = 1 |
| Require that the condition (anon/bot/minor) be matched.
|
|
const | FILTER_EXCLUDE = 2 |
| Exclude edits that match the condition.
|
|
◆ __construct()
MediaWiki\Extension\GlobalWatchlist\SettingsManager::__construct |
( |
LoggerInterface | $logger, |
|
|
UserOptionsManager | $userOptionsManager, |
|
|
IBufferingStatsdDataFactory | $statsdDataFactory ) |
- Parameters
-
LoggerInterface | $logger | |
UserOptionsManager | $userOptionsManager | |
IBufferingStatsdDataFactory | $statsdDataFactory | |
◆ saveUserOptions()
MediaWiki\Extension\GlobalWatchlist\SettingsManager::saveUserOptions |
( |
UserIdentity | $userIdentity, |
|
|
array | $options ) |
Save user settings.
- Parameters
-
UserIdentity | $userIdentity | |
array | $options | |
◆ FILTER_EITHER
const MediaWiki\Extension\GlobalWatchlist\SettingsManager::FILTER_EITHER = 0 |
Make the code clearer by using constants instead of 0, 1, or 2 to represent the filter statuses.
Used for anon filter, bot filter, and minor filter Don't care, not filtered
◆ PREFERENCE_NAME
const MediaWiki\Extension\GlobalWatchlist\SettingsManager::PREFERENCE_NAME = 'global-watchlist-options' |
Name for the user option in the database with the user's global watchlist settings.
- Note
- This must be the same as the options name used in getSettings.js
The documentation for this class was generated from the following file: