Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4060473
StringPrefixSearch.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
677 B
Referenced Files
None
Subscribers
None
StringPrefixSearch.php
View Options
<?php
/**
* Prefix search of page names.
*
* @license GPL-2.0-or-later
* @file
*/
use
MediaWiki\Title\Title
;
/**
* Performs prefix search, returning strings
* @deprecated Since 1.27, Use SearchEngine::prefixSearchSubpages or SearchEngine::completionSearch
* @ingroup Search
*/
class
StringPrefixSearch
extends
PrefixSearch
{
/**
* @param Title[] $titles
* @return string[]
*/
protected
function
titles
(
array
$titles
)
{
return
array_map
(
static
function
(
Title
$t
)
{
return
$t
->
getPrefixedText
();
},
$titles
);
}
/**
* @param string[] $strings
* @return string[]
*/
protected
function
strings
(
array
$strings
)
{
return
$strings
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 16 2026, 07:35 (12 w, 15 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
54/b8/e2870be73f4e7eae5f2ce0b1ec2c
Default Alt Text
StringPrefixSearch.php (677 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment