|
const | EXTENSION_NAME = 'popups' |
|
const | LOGGER_CHANNEL = 'popups' |
| Logger channel name.
|
|
const | PREVIEWS_ENABLED = true |
| User preference value for enabled Page Previews.
|
|
const | PREVIEWS_DISABLED = false |
| User preference value for disabled Page Previews.
|
|
◆ __construct()
Popups\PopupsContext::__construct |
( |
Config | $config, |
|
|
ExtensionRegistry | $extensionRegistry, |
|
|
PopupsGadgetsIntegration | $gadgetsIntegration, |
|
|
SpecialPageFactory | $specialPageFactory, |
|
|
UserOptionsLookup | $userOptionsLookup ) |
- Parameters
-
Config | $config | Mediawiki configuration |
ExtensionRegistry | $extensionRegistry | MediaWiki extension registry |
PopupsGadgetsIntegration | $gadgetsIntegration | Gadgets integration helper |
SpecialPageFactory | $specialPageFactory | |
UserOptionsLookup | $userOptionsLookup | |
◆ areDependenciesMet()
Popups\PopupsContext::areDependenciesMet |
( |
| ) |
|
◆ conflictsWithNavPopupsGadget()
Popups\PopupsContext::conflictsWithNavPopupsGadget |
( |
User | $user | ) |
|
- Parameters
-
User | $user | User whose gadgets settings are being checked |
- Returns
- bool
◆ getConfigBitmaskFromUser()
Popups\PopupsContext::getConfigBitmaskFromUser |
( |
User | $user | ) |
|
- Parameters
-
User | $user | User whose preferences are checked |
- Returns
- int
◆ isTitleExcluded()
Popups\PopupsContext::isTitleExcluded |
( |
| $title | ) |
|
Whether popups code should be shipped to $title.
For example, if 'Special:UserLogin' is excluded, and the user is on 'Special:UserLogin', then the title is considered excluded.
A title is also considered excluded if its root matches one of the page names from the config variable. For example, if 'User:A' is excluded, and the title is 'User:A/b', then this title is considered excluded.
Language specific excluded titles affect all languages. For example, if "Main_Page" is excluded, "Bosh_Sahifa" (which is "Main_Page" in Uzbek) is considered excluded too.
- Parameters
-
Title | $title | title being tested |
- Returns
- bool
◆ showPreviewsOptInOnPreferencesPage()
Popups\PopupsContext::showPreviewsOptInOnPreferencesPage |
( |
| ) |
|
Are Page previews visible on User Preferences Page.
- Returns
- bool
The documentation for this class was generated from the following file:
- includes/PopupsContext.php