Jump to content
MediaWiki

Manual:Hooks/ContribsPager::reallyDoQuery

From mediawiki.org
ContribsPager::reallyDoQuery
Available from version 1.20.0
Called before really executing the query for Special:Contributions.
Define function:
public static function onContribsPager_reallyDoQuery( array &$data, MediaWiki\Pager\ContributionsPager $pager, int $offset, int $limit, bool $order ) { ... }
Attach hook: In extension.json:
{
"Hooks":{
"ContribsPager::reallyDoQuery":"MediaWiki\\Extension\\MyExtension\\Hooks::onContribsPagerreallyDoQuery"
}
}
Called from: File(s): pager/ContributionsPager.php
Interface: ContribsPager__reallyDoQueryHook.php

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


Details

[edit ]
  • &$data: an array of results of all contribution queries
  • $pager: The MediaWiki\Pager\ContributionsPager object hooked into
  • $offset: Index offset, inclusive
  • $limit: Exact query limit
  • $order: Represents the query direction. Set this as false for ascending, or true for descending.

AltStyle によって変換されたページ (->オリジナル) /