| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
| 6 | /** |
| 7 | * This is a hook handler interface, see docs/Hooks.md. |
| 8 | * Use the hook name "WikiExporter::dumpStableQuery" to register handlers implementing this interface. |
| 9 | * |
| 10 | * @stable to implement |
| 11 | * @ingroup Hooks |
| 12 | */ |
| 13 | interface WikiExporter__dumpStableQueryHook { |
| 14 | /** |
| 15 | * Use this hook to get the SELECT query for "stable" revisions |
| 16 | * dumps. One, and only one hook should set this, and return false. |
| 17 | * |
| 18 | * @since 1.35 |
| 19 | * |
| 20 | * @param array &$tables Database tables to use in the SELECT query |
| 21 | * @param array &$opts Options to use for the query |
| 22 | * @param array &$join Join conditions |
| 23 | * @return bool|void True or no return value to continue or false to abort |
| 24 | */ |
| 25 | public function onWikiExporter__dumpStableQuery( &$tables, &$opts, &$join ); |
| 26 | } |