Manual:Hooks/ModifyExportQuery/es

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
ModifyExportQuery
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Modify the query used by the exporter.
<translate> Define function:</translate>
public static function onModifyExportQuery( $db, &$tables, &$cond, &$opts, &$join_conds, &$conds ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"ModifyExportQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onModifyExportQuery"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> export/WikiExporter.php
<translate> Interface:</translate> ModifyExportQueryHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Enganches </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ModifyExportQuery extensions/es</tvar>.</translate>

Detalles

  • $db - The database object to be queried.
  • &$tables - Tables in the query.
  • &$cond - An SQL fragment included in the WHERE clause which is used to filter the results
  • &$opts - Options for the query.
  • &$join_conds - Join conditions for the query.
  • &$conds - Conditions in the query.