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

Public Member Functions | |
| onSpecialRandomGetRandomTitle (&$randstr, &$isRedir, &$namespaces, &$extra, &$title) | |
| This hook is called during the execution of Special:Random,. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "SpecialRandomGetRandomTitle" to register handlers implementing this interface.
Definition at line 14 of file SpecialRandomGetRandomTitleHook.php.
| MediaWiki\Hook\SpecialRandomGetRandomTitleHook::onSpecialRandomGetRandomTitle | ( | & | $randstr, |
| & | $isRedir, | ||
| & | $namespaces, | ||
| & | $extra, | ||
| & | $title ) |
This hook is called during the execution of Special:Random,.
Use this to change some selection criteria or substitute a different title.
| string | &$randstr | The random number from wfRandom() |
| bool | &$isRedir | Boolean, whether to select a redirect or non-redirect |
| int[] | &$namespaces | An array of namespace indexes to get the title from |
| array | &$extra | An array of extra SQL statements |
| Title | &$title | If the hook returns false, a Title object to use instead of the result from the normal query |
Implemented in MediaWiki\HookContainer\HookRunner.