Manual:Hooks/SpecialRecentChangesQuery

From MediaWiki.org
Jump to: navigation, search
SpecialRecentChangesQuery
Available from version 1.13.0
Called when building sql query for SpecialRecentChanges.

*Define function:
function fnMyHook( &$conds, &$tables, &$join_conds, $opts, &$query_options, &$select ) { ... }

*Attach hook:
$wgHooks['SpecialRecentChangesQuery'][] = 'MyExtensionHooks::someExample';
Called from: SpecialRecentchanges.php

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


[edit] Details

  • &$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
  • &$select: array of table fields to be fetched
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox