GlobalWatchlist
Extension to create a global watchlist
Loading...
Searching...
No Matches
MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks Class Reference
+ Inheritance diagram for MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks:
+ Collaboration diagram for MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks:

Public Member Functions

 __construct (SpecialPageFactory $specialPageFactory, IBufferingStatsdDataFactory $statsdDataFactory)
 
 onApiOptions ( $apiModule, $user, $changes, $resetKinds)
 
 onGetPreferences ( $user, &$preferences)
 
 onLoginFormValidErrorMessages (array &$messages)
 Only logged-in users can use Special:GlobalWatchlist and Special:GlobalWatchlistSettings.
 
 onSidebarBeforeOutput ( $skin, &$sidebar)
 Add a link to Special:GlobalWatchlist when on Special:Watchlist.
 

Detailed Description

Author
DannyS712

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::__construct ( SpecialPageFactory $specialPageFactory,
IBufferingStatsdDataFactory $statsdDataFactory )
Parameters
SpecialPageFactory$specialPageFactory
IBufferingStatsdDataFactory$statsdDataFactory

Member Function Documentation

◆ onApiOptions()

MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::onApiOptions ( $apiModule,
$user,
$changes,
$resetKinds )
Parameters
ApiOptions$apiModule
User$user
array$changesAssociative array of preference name => value
string[]$resetKinds

◆ onGetPreferences()

MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::onGetPreferences ( $user,
& $preferences )
Parameters
User$user
array&$preferences

◆ onLoginFormValidErrorMessages()

MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::onLoginFormValidErrorMessages ( array & $messages)

Only logged-in users can use Special:GlobalWatchlist and Special:GlobalWatchlistSettings.

Ensure that when anonymous users are redirected to Special:UserLogin, there is a note explaining why

Parameters
string[]&$messages

◆ onSidebarBeforeOutput()

MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::onSidebarBeforeOutput ( $skin,
& $sidebar )

Add a link to Special:GlobalWatchlist when on Special:Watchlist.

Parameters
Skin$skin
array&$sidebarSidebar content. Modify $sidebar to add or modify sidebar portlets.

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