MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Amc\Hooks Class Reference
+ Inheritance diagram for MobileFrontend\Amc\Hooks:
+ Collaboration diagram for MobileFrontend\Amc\Hooks:

Public Member Functions

 __construct (UserFactory $userFactory)
 
 onUserGetDefaultOptions (&$defaultUserOptions)
 Register default preference value for AMC opt-in.
 
 onGetPreferences ( $user, &$preferences)
 Register AMC preference.
 
 onListDefinedTags (&$tags)
 ListDefinedTags hook handler.
 
 onChangeTagsListActive (&$tags)
 ChangeTagsListActive hook handler.
 
 onManualLogEntryBeforePublish ( $logEntry)
 ManualLogEntryBeforePublish hook handler that tags actions logged when user uses AMC mode.
 
 onRecentChange_save ( $rc)
 RecentChange_save hook handler that tags changes performed when user uses AMC mode.
 

Member Function Documentation

◆ onChangeTagsListActive()

MobileFrontend\Amc\Hooks::onChangeTagsListActive ( & $tags)

ChangeTagsListActive hook handler.

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

◆ onGetPreferences()

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

Register AMC preference.

Parameters
User$user
array&$preferences

◆ onListDefinedTags()

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

ListDefinedTags hook handler.

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

◆ onManualLogEntryBeforePublish()

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

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

◆ onRecentChange_save()

MobileFrontend\Amc\Hooks::onRecentChange_save ( $rc)

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()

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

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: