MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onChangesListSpecialPageQuery ( $name, &$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts) | |
This hook is called when building an SQL query on pages inheriting from ChangesListSpecialPage (in core: RecentChanges, RecentChangesLinked and Watchlist). | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ChangesListSpecialPageQuery" to register handlers implementing this interface.
Definition at line 14 of file ChangesListSpecialPageQueryHook.php.
MediaWiki\SpecialPage\Hook\ChangesListSpecialPageQueryHook::onChangesListSpecialPageQuery | ( | $name, | |
& | $tables, | ||
& | $fields, | ||
& | $conds, | ||
& | $query_options, | ||
& | $join_conds, | ||
$opts ) |
This hook is called when building an SQL query on pages inheriting from ChangesListSpecialPage (in core: RecentChanges, RecentChangesLinked and Watchlist).
Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure. Instead, use sub-classes of those classes in conjunction with the ChangesListSpecialPageStructuredFilters hook. This hook can be used to implement filters that do not implement that structure or custom behavior that is not an individual filter.
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 |
Implemented in MediaWiki\HookContainer\HookRunner.