MediaWiki  master
MediaWiki\Hook\ModifyExportQueryHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\ModifyExportQueryHook:

Public Member Functions

 onModifyExportQuery ( $db, &$tables, $cond, &$opts, &$join_conds, &$conds)
 Use this hook to modify the query used by the exporter. More...
 

Detailed Description

Stable to implement.

Definition at line 11 of file ModifyExportQueryHook.php.

Member Function Documentation

◆ onModifyExportQuery()

MediaWiki\Hook\ModifyExportQueryHook::onModifyExportQuery (   $db,
$tables,
  $cond,
$opts,
$join_conds,
$conds 
)

Use this hook to modify the query used by the exporter.

Since
1.35
Parameters
IDatabase$dbDatabase object to be queried
array&$tablesTables in the query
string$condAn SQL fragment included in the WHERE clause which is used to filter the results, for example to a specific page. Since 1.31, modification of this parameter has no effect. Since 1.35, you can use $conds instead to modify the array of conditions passed to IDatabase::select().
array&$optsOptions for the query
array&$join_condsJoin conditions for the query
array&$condsThe array of conditions to be passed to IDatabase::select(). Can be modified. Includes the value of $cond.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: