Manual:Hooks/DeletedContribsPager::reallyDoQuery

From mediawiki.org
DeletedContribsPager::reallyDoQuery
Available from version 1.24.0 (Gerrit change 198716)
Called before really executing the query for Special:DeletedContributions
Define function:
public static function onDeletedContribsPager_reallyDoQuery( array &$data, DeletedContribsPager $pager, int $offset, int $limit, bool $descending ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"DeletedContribsPager::reallyDoQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onDeletedContribsPagerreallyDoQuery"
	}
}
Called from: File(s): specials/pagers/DeletedContribsPager.php
Interface: DeletedContribsPager__reallyDoQueryHook.php

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


Details[edit]

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

See also[edit]