Page MenuHomeWickedGov Phorge

SpecialRandomGetRandomTitleHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

SpecialRandomGetRandomTitleHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Title\Title;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "SpecialRandomGetRandomTitle" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface SpecialRandomGetRandomTitleHook {
/**
* This hook is called during the execution of Special:Random,
*
* Use this to change some selection criteria or substitute a different title.
*
* @since 1.35
*
* @param string &$randstr The random number from wfRandom()
* @param bool &$isRedir Boolean, whether to select a redirect or non-redirect
* @param int[] &$namespaces An array of namespace indexes to get the title from
* @param array &$extra An array of extra SQL statements
* @param Title &$title If the hook returns false, a Title object to use instead of the
* result from the normal query
* @return bool|void True or no return value to continue or false to abort
*/
public function onSpecialRandomGetRandomTitle( &$randstr, &$isRedir,
&$namespaces, &$extra, &$title
);
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Aug 18, 22:41 (9 h, 3 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5d/cc/bfcc76ad6cb9738cd60850e8c409
Default Alt Text
SpecialRandomGetRandomTitleHook.php (1 KB)

Event Timeline