MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Amc\Hooks Class Reference

Static Public Member Functions

static onUserGetDefaultOptions (&$defaultUserOptions)
 Register default preference value for AMC opt-in.
 
static onGetPreferences (User $user, array &$preferences)
 Register AMC preference.
 
static onListDefinedTags (&$tags)
 ListDefinedTags and ChangeTagsListActive hook handler.
 
static onManualLogEntryBeforePublish (\ManualLogEntry $logEntry)
 ManualLogEntryBeforePublish hook handler that tags actions logged when user uses AMC mode.
 
static onRecentChangeSave (\RecentChange $rc)
 RecentChange_save hook handler that tags changes performed when user uses AMC mode.
 

Member Function Documentation

◆ onGetPreferences()

static MobileFrontend\Amc\Hooks::onGetPreferences ( User $user,
array & $preferences )
static

Register AMC preference.

Parameters
User$user
array&$preferences

◆ onListDefinedTags()

static MobileFrontend\Amc\Hooks::onListDefinedTags ( & $tags)
static

ListDefinedTags and ChangeTagsListActive hook handler.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ListDefinedTags
https://www.mediawiki.org/wiki/Manual:Hooks/ChangeTagsListActive
Parameters
array&$tagsThe list of tags. Add your extension's tags to this array.
Returns
bool

◆ onManualLogEntryBeforePublish()

static MobileFrontend\Amc\Hooks::onManualLogEntryBeforePublish ( \ManualLogEntry $logEntry)
static

ManualLogEntryBeforePublish hook handler that tags actions logged when user uses AMC mode.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ManualLogEntryBeforePublish
Parameters
\ManualLogEntry$logEntry

◆ onRecentChangeSave()

static MobileFrontend\Amc\Hooks::onRecentChangeSave ( \RecentChange $rc)
static

RecentChange_save hook handler that tags changes performed when user uses AMC mode.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/RecentChange_save
Parameters
\RecentChange$rc

◆ onUserGetDefaultOptions()

static MobileFrontend\Amc\Hooks::onUserGetDefaultOptions ( & $defaultUserOptions)
static

Register default preference value for AMC opt-in.

Parameters
array&$defaultUserOptionsReference to default options array

The documentation for this class was generated from the following file: