Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler Class Reference
+ Inheritance diagram for Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler:
+ Collaboration diagram for Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler:

Public Member Functions

 __construct (IReadableDatabase $dbr, bool $showExternalChanges, bool $isMobileView, UserOptionsLookup $userOptionsLookup)
 
 onChangesListSpecialPageQuery ( $name, &$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts)
 This is used to force-hide Wikibase changes if hasWikibaseChangesEnabled returns false.
 
 addWikibaseConditions (IReadableDatabase $dbr, array &$conds)
 

Static Public Member Functions

static factory (UserOptionsLookup $userOptionsLookup, ClientDomainDbFactory $dbFactory, bool $isMobileView, SettingsArray $clientSettings)
 
static onChangesListSpecialPageStructuredFilters ( $special)
 

Protected Member Functions

 addFilter (ChangesListSpecialPage $specialPage)
 
 hasWikibaseChangesEnabled ()
 

Private Member Functions

 hasShowWikibaseEditsPrefEnabled (User $user, string $pageName)
 
 getFilterName ()
 
 getOptionName (string $pageName)
 

Private Attributes

IReadableDatabase $dbr
 
bool $showExternalChanges
 
bool $isMobileView
 
UserOptionsLookup $userOptionsLookup
 

Detailed Description

Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::__construct ( IReadableDatabase $dbr,
bool $showExternalChanges,
bool $isMobileView,
UserOptionsLookup $userOptionsLookup )

Member Function Documentation

◆ addFilter()

Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::addFilter ( ChangesListSpecialPage $specialPage)
protected

◆ addWikibaseConditions()

Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::addWikibaseConditions ( IReadableDatabase $dbr,
array & $conds )

◆ factory()

static Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::factory ( UserOptionsLookup $userOptionsLookup,
ClientDomainDbFactory $dbFactory,
bool $isMobileView,
SettingsArray $clientSettings )
static

◆ getFilterName()

Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::getFilterName ( )
private

◆ getOptionName()

Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::getOptionName ( string $pageName)
private

◆ hasShowWikibaseEditsPrefEnabled()

Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::hasShowWikibaseEditsPrefEnabled ( User $user,
string $pageName )
private

◆ hasWikibaseChangesEnabled()

Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::hasWikibaseChangesEnabled ( )
protected

◆ onChangesListSpecialPageQuery()

Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::onChangesListSpecialPageQuery ( $name,
& $tables,
& $fields,
& $conds,
& $query_options,
& $join_conds,
$opts )

This is used to force-hide Wikibase changes if hasWikibaseChangesEnabled returns false.

The user will not even see the option in that case.

Parameters
string$nameName of the special page, e.g. 'Watchlist'
array&$tablesArray of tables to be queried
array&$fieldsArray of columns to select
array&$condsArray of WHERE conditionals for query
array&$query_optionsArray of options for the database request
array&$join_condsJoin conditions for the tables
FormOptions$optsFormOptions for this request

◆ onChangesListSpecialPageStructuredFilters()

static Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::onChangesListSpecialPageStructuredFilters ( $special)
static
Parameters
ChangesListSpecialPage$special

Member Data Documentation

◆ $dbr

IReadableDatabase Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::$dbr
private

◆ $isMobileView

bool Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::$isMobileView
private

◆ $showExternalChanges

bool Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::$showExternalChanges
private

◆ $userOptionsLookup

UserOptionsLookup Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::$userOptionsLookup
private

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