Manual:Hooks/ContribsPager::reallyDoQuery
From Linux Web Expert
ContribsPager::reallyDoQuery | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Called before really executing the query for Special:Contributions. | |
<translate> Define function:</translate> | public static function onContribsPager_reallyDoQuery( array &$data, ContribsPager $pager, int $offset, int $limit, bool $order ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"ContribsPager::reallyDoQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onContribsPagerreallyDoQuery"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> specials/pagers/ContribsPager.php |
<translate> Interface:</translate> | ContribsPager__reallyDoQueryHook.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:ContribsPager::reallyDoQuery extensions</tvar>.</translate>
Details
&$data
: an array of results of all contribution queries$pager
: The ContribsPager 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.