MobileFrontend
Mobile optimised frontend for MediaWiki
|
Hook handlers for MobileFrontend extension. More...
Public Member Functions | |
onResourceLoaderSiteStylesModulePages ( $skin, array &$pages) | |
ResourceLoaderSiteStylesModulePages hook handler. | |
onResourceLoaderSiteModulePages ( $skin, array &$pages) | |
ResourceLoaderSiteModulePages hook handler. | |
onListDefinedTags (&$tags) | |
ListDefinedTags hook handler. | |
onChangeTagsListActive (&$tags) | |
ChangeTagsListActive hook handler. | |
addDefinedTags (&$tags) | |
onRecentChange_save ( $recentChange) | |
RecentChange_save hook handler that tags mobile changes. | |
onManualLogEntryBeforePublish ( $logEntry) | |
ManualLogEntryBeforePublish hook handler that tags actions logged when user uses mobile mode. | |
onUserGetDefaultOptions (&$defaultUserOptions) | |
Register default preferences for MobileFrontend. | |
onGetPreferences ( $user, &$preferences) | |
GetPreferences hook handler. | |
onLoginFormValidErrorMessages (array &$messages) | |
LoginFormValidErrorMessages hook handler to promote MF specific error message be valid. | |
Static Public Member Functions | |
static | getResourceLoaderMFConfigVars () |
Generate config for usage inside MobileFrontend This should be used for variables which: | |
static | shouldMobileFormatSpecialPages ( $user) |
Should special pages be replaced with mobile formatted equivalents? | |
static | onAbuseFilterBuilder (&$builder) |
AbuseFilter-builder hook handler that adds user_mobile variable to list of valid vars. | |
static | onCentralAuthSilentLoginRedirect ( $centralUser, &$url, $info) |
CentralAuthSilentLoginRedirect hook handler Points redirects from CentralAuth wiki to mobile domain if user has logged in from it. | |
static | findTagline (ParserOutput $po, $fallbackWikibaseDescriptionFunc) |
Finds the wikidata tagline associated with the page. | |
static | hasEditNoticesFeatureConflict (Config $config, User $user) |
Check if a conflicting edit notices gadget is enabled for the current user. | |
Static Protected Member Functions | |
static | getDefaultMobileSkin (Config $config) |
Obtain the default mobile skin. | |
Hook handlers for MobileFrontend extension.
If your hook changes the behaviour of the Minerva skin, you are in the wrong place. Any changes relating to Minerva should go into Minerva.hooks.php
MobileFrontendHooks::addDefinedTags | ( | & | $tags | ) |
array | &$tags |
|
static |
Finds the wikidata tagline associated with the page.
ParserOutput | $po | |
callable | $fallbackWikibaseDescriptionFunc | A fallback to provide Wikibase description. Function takes wikibase_item as a first and only argument |
|
staticprotected |
Obtain the default mobile skin.
Config | $config |
SkinException | If a factory function isn't registered for the skin name |
|
static |
Generate config for usage inside MobileFrontend This should be used for variables which:
|
static |
Check if a conflicting edit notices gadget is enabled for the current user.
Config | $config | |
User | $user |
|
static |
AbuseFilter-builder hook handler that adds user_mobile variable to list of valid vars.
array | &$builder | Array in AbuseFilter::getBuilderValues to add to. |
|
static |
CentralAuthSilentLoginRedirect hook handler Points redirects from CentralAuth wiki to mobile domain if user has logged in from it.
\MediaWiki\Extension\CentralAuth\User\CentralAuthUser | $centralUser | |
string | &$url | to redirect to |
array | $info | token information |
MobileFrontendHooks::onChangeTagsListActive | ( | & | $tags | ) |
ChangeTagsListActive hook handler.
array | &$tags | The list of tags. Add your extension's tags to this array. |
MobileFrontendHooks::onGetPreferences | ( | $user, | |
& | $preferences ) |
GetPreferences hook handler.
User | $user | User whose preferences are being modified |
array | &$preferences | Preferences description array, to be fed to an HTMLForm object |
MobileFrontendHooks::onListDefinedTags | ( | & | $tags | ) |
ListDefinedTags hook handler.
array | &$tags | The list of tags. Add your extension's tags to this array. |
MobileFrontendHooks::onLoginFormValidErrorMessages | ( | array & | $messages | ) |
LoginFormValidErrorMessages hook handler to promote MF specific error message be valid.
array | &$messages | Array of already added messages |
MobileFrontendHooks::onManualLogEntryBeforePublish | ( | $logEntry | ) |
ManualLogEntryBeforePublish hook handler that tags actions logged when user uses mobile mode.
ManualLogEntry | $logEntry |
MobileFrontendHooks::onRecentChange_save | ( | $recentChange | ) |
RecentChange_save hook handler that tags mobile changes.
RecentChange | $recentChange |
MobileFrontendHooks::onResourceLoaderSiteModulePages | ( | $skin, | |
array & | $pages ) |
ResourceLoaderSiteModulePages hook handler.
string | $skin | |
array | &$pages | to sort modules from. |
MobileFrontendHooks::onResourceLoaderSiteStylesModulePages | ( | $skin, | |
array & | $pages ) |
ResourceLoaderSiteStylesModulePages hook handler.
string | $skin | |
array | &$pages | to sort modules from. |
MobileFrontendHooks::onUserGetDefaultOptions | ( | & | $defaultUserOptions | ) |
Register default preferences for MobileFrontend.
array | &$defaultUserOptions | Reference to default options array |
|
static |
Should special pages be replaced with mobile formatted equivalents?
User | $user | for which we need to make the decision based on user prefs |