Manual:Hooks/SpecialRecentChangesQuery
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.32.0</tvar> (after being deprecated in <tvar name=4>1.23.0</tvar>).</translate> Please use ChangesListSpecialPageStructuredFilters (preferred) or ChangesListSpecialPageQuery instead. |
SpecialRecentChangesQuery | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> <translate> Removed in <tvar name=1><translate> version <tvar (Gerrit change 463881)</tvar></translate> Called when building sql query for SpecialRecentChanges. | |
<translate> Define function:</translate> | public static function onSpecialRecentChangesQuery( array &$conds, array &$tables, array &$joinConds, FormOptions $opts, &$queryOptions, array &$select ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"SpecialRecentChangesQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialRecentChangesQuery"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> specials/SpecialRecentChanges.php |
<translate> Interface:</translate> | SpecialRecentChangesQueryHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SpecialRecentChangesQuery extensions</tvar>.</translate>
Details
&$conds
: array of where conditionals for query&$tables
: array of tables to be queried&$joinConds
: JOIN conditions for the tables$opts
: FormOptions for this request&$queryOptions
: additional query options (added in r61670)&$select
: array of table fields to be fetched