MediaWiki REL1_35
MediaWiki\Hook\RandomPageQueryHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\RandomPageQueryHook:

Public Member Functions

 onRandomPageQuery (&$tables, &$conds, &$joinConds)
 Use this hook to modify the query used by Special:Random to select random pages.
 

Detailed Description

Stable to implement.

Definition at line 9 of file RandomPageQueryHook.php.

Member Function Documentation

◆ onRandomPageQuery()

MediaWiki\Hook\RandomPageQueryHook::onRandomPageQuery ( $tables,
$conds,
$joinConds 
)

Use this hook to modify the query used by Special:Random to select random pages.

Since
1.35
Parameters
array&$tablesDatabase tables to be used in the query
array&$condsConditions to be applied in the query
array&$joinCondsJoin conditions to be applied in the query
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: