◆ __construct()
Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::__construct |
( |
IDatabase |
$dbr, |
|
|
|
$showExternalChanges |
|
) |
| |
- Parameters
-
IDatabase | $dbr | |
bool | $showExternalChanges | |
◆ addFilter()
Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::addFilter |
( |
ChangesListSpecialPage |
$specialPage | ) |
|
|
protected |
◆ addWikibaseConditions()
Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::addWikibaseConditions |
( |
IDatabase |
$dbr, |
|
|
array & |
$conds |
|
) |
| |
- Parameters
-
IDatabase | $dbr | |
array | &$conds | |
◆ factory()
static Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::factory |
( |
ILoadBalancer |
$loadBalancer, |
|
|
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
Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::$dbr |
|
private |
◆ $showExternalChanges
Wikibase\Client\Hooks\ChangesListSpecialPageHookHandler::$showExternalChanges |
|
private |
The documentation for this class was generated from the following file: