Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / export / Hook / ModifyExportQueryHook.php
bloba558b23174fa6ebf66a10d2ad3e4f992e6eba157
1 <?php
3 namespace MediaWiki\Hook;
5 use Wikimedia\Rdbms\IReadableDatabase;
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "ModifyExportQuery" to register handlers implementing this interface.
11 * @stable to implement
12 * @ingroup Hooks
14 interface ModifyExportQueryHook {
15 /**
16 * Use this hook to modify the query used by the exporter.
18 * @since 1.35
20 * @param IReadableDatabase $db Database object to be queried
21 * @param array &$tables Tables in the query
22 * @param string $cond An SQL fragment included in the WHERE clause which is used to filter
23 * the results, for example to a specific page. Since 1.31, modification of this
24 * parameter has no effect. Since 1.35, you can use $conds instead to modify the
25 * array of conditions passed to IReadableDatabase::select().
26 * @param array &$opts Options for the query
27 * @param array &$join_conds Join conditions for the query
28 * @param array &$conds The array of conditions to be passed to IReadableDatabase::select(). Can be
29 * modified. Includes the value of $cond.
30 * @return bool|void True or no return value to continue or false to abort
32 public function onModifyExportQuery( $db, &$tables, $cond, &$opts,
33 &$join_conds, &$conds