Manual:Hooks/WikiExporter::dumpStableQuery

From MediaWiki.org
Jump to navigation Jump to search
WikiExporter::dumpStableQuery
Available from version 1.15.0
Get the SELECT query for "stable" revisions dumps.
Define function:
public static function onWikiExporter_dumpStableQuery( &$tables, &$opts, &$join ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"WikiExporter::dumpStableQuery": "MyExtensionHooks::onWikiExporterdumpStableQuery"
	}
}

For MediaWiki ≤1.25:

$wgHooks['WikiExporter::dumpStableQuery'][] = 'MyExtensionHooks::onWikiExporterdumpStableQuery';
Called from:File(s): export/WikiExporter.php

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

Details[edit]

One, and only one hook should set this, and return false.

  • &$tables: Database tables to use in the SELECT query
  • &$opts: Options to use for the query
  • &$join: Join conditions