Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5943374
SpecialRandomGetRandomTitleHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SpecialRandomGetRandomTitleHook.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Oct 2 2026, 18:04 (6 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5d/cc/bfcc76ad6cb9738cd60850e8c409
Default Alt Text
SpecialRandomGetRandomTitleHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment