|
| __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) |
|
◆ __construct()
Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::__construct |
( |
IReadableDatabase | $dbr, |
|
|
bool | $showExternalChanges, |
|
|
bool | $isMobileView, |
|
|
UserOptionsLookup | $userOptionsLookup ) |
◆ 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 | $name | Name of the special page, e.g. 'Watchlist' |
array | &$tables | Array of tables to be queried |
array | &$fields | Array of columns to select |
array | &$conds | Array of WHERE conditionals for query |
array | &$query_options | Array of options for the database request |
array | &$join_conds | Join conditions for the tables |
FormOptions | $opts | FormOptions for this request |
◆ onChangesListSpecialPageStructuredFilters()
static Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::onChangesListSpecialPageStructuredFilters |
( |
| $special | ) |
|
|
static |
- Parameters
-
ChangesListSpecialPage | $special | |
◆ $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: