MediaWiki master
MediaWiki\Hook\RandomPageQueryHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

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

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "RandomPageQuery" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 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: