Manual:Hooks/ModifyExportQuery

From MediaWiki.org
Jump to: navigation, search
ModifyExportQuery
Available from version 1.16.0
Modify the query used by the exporter.

*Define function:
function fnMyHook( $db, &$tables, &$conds, &$opts, &$join_conds ) { ... }

*Attach hook:
$wgHooks['ModifyExportQuery'][] = 'MyExtensionHooks::someExample';
Called from: Export.php

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


[edit] Details

  • $db: The database object to be queried.
  • &$tables: Tables in the query.
  • &$conds: Conditions in the query.
  • &$opts: Options for the query.
  • &$join_conds: Join conditions for the query.
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox