Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5963114
SearchNearMatchResultSet.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
461 B
Referenced Files
None
Subscribers
None
SearchNearMatchResultSet.php
View Options
<?php
use
MediaWiki\Title\Title
;
/**
* A ISearchResultSet wrapper for TitleMatcher
*/
class
SearchNearMatchResultSet
extends
SearchResultSet
{
/**
* @param Title|null $match Title if matched, else null
*/
public
function
__construct
(
$match
)
{
if
(
$match
===
null
)
{
$this
->
results
=
[];
}
else
{
$this
->
results
=
[
SearchResult
::
newFromTitle
(
$match
,
$this
)
];
}
}
public
function
numRows
()
{
return
$this
->
results
?
1
:
0
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 09:25 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e6/fa/f28fcf64026417f1a9ebf95fa2df
Default Alt Text
SearchNearMatchResultSet.php (461 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment