gplx/mediawiki/includes/specials/Hook/RandomPageQueryHook.php

25 lines
732 B
PHP

<?php
namespace MediaWiki\Hook;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "RandomPageQuery" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface RandomPageQueryHook {
/**
* Use this hook to modify the query used by Special:Random to select random pages.
*
* @since 1.35
*
* @param array &$tables Database tables to be used in the query
* @param array &$conds Conditions to be applied in the query
* @param array &$joinConds Join conditions to be applied in the query
* @return bool|void True or no return value to continue or false to abort
*/
public function onRandomPageQuery( &$tables, &$conds, &$joinConds );
}