Manual:Hooks/SpecialRecentChangesQuery

From MediaWiki.org
Jump to: navigation, search

】--113.79.61.21114:58, 29 April 2015 (UTC)】[[Category:]]; border:1px solid black; border-collapse:collapse; margin:auto; clear:both" cellpadding="5"

SpecialRecentChangesQuery
Available from version 1.13.0
Called when building sql query for SpecialRecentChanges.
Define function:
public static function onSpecialRecentChangesQuery( &$conds, &$tables, &$join_conds, $opts, &$query_options, &$select ) { ... }
Attach hook:
$wgHooks['SpecialRecentChangesQuery'][] = 'MyExtensionHooks::onSpecialRecentChangesQuery';
Called from: File(s): SpecialRecentchanges.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialRecentChangesQuery extensions.

Details[edit | edit source]

  • &$conds: array of where conditionals for query
  • &$tables: array of tables to be queried
  • &$join_conds: join conditions for the tables
  • $opts: FormOptions for this request
  • &$query_options: additional query options (added in r61670)
  • &$select: array of table fields to be fetched