Manual:Hooks/ContribsPager::reallyDoQuery

From MediaWiki.org
Jump to: navigation, search
ContribsPager::reallyDoQuery
Available from version 1.20.0
Called before really executing the query for My Contributions.

Define function:
public static function onContribsPager::reallyDoQuery( &$data, $pager, $offset, $limit, $descending ) { ... }

Attach hook:
$wgHooks['ContribsPager::reallyDoQuery'][] = 'MyExtensionHooks::onContribsPager::reallyDoQuery';
Called from: SpecialContributions.php

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


Details[edit | edit source]

  • &$data: an array of results of all contribs queries
  • $pager: The ContribsPager object hooked into
  • $offset: Index offset, inclusive
  • $limit: Exact query limit
  • $descending: Query direction, false for ascending, true for descending