Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5974447
PrefixSearchExtractNamespaceHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
850 B
Referenced Files
None
Subscribers
None
PrefixSearchExtractNamespaceHook.php
View Options
<?php
namespace
MediaWiki\Search\Hook
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PrefixSearchExtractNamespace" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
PrefixSearchExtractNamespaceHook
{
/**
* This hook is called if core was not able to extract a
* namespace from the search string so that extensions can attempt it.
*
* @since 1.35
*
* @param int[] &$namespaces Array of int namespace keys to search in
* (change this if you can extract namespaces)
* @param string &$search Search term (replace this with term without
* the namespace if you can extract one)
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onPrefixSearchExtractNamespace
(
&
$namespaces
,
&
$search
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 17:25 (1 d, 9 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c9/d3/2c2163452934bbeb122d8939425e
Default Alt Text
PrefixSearchExtractNamespaceHook.php (850 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment