MediaWiki
1.42.1
SearchNearMatchResultSet.php
Go to the documentation of this file.
1
<?php
2
3
use
MediaWiki\Title\Title
;
4
8
class
SearchNearMatchResultSet
extends
SearchResultSet
{
12
public
function
__construct
( $match ) {
13
if
( $match ===
null
) {
14
$this->results = [];
15
}
else
{
16
$this->results = [ SearchResult::newFromTitle( $match, $this ) ];
17
}
18
}
19
20
public
function
numRows
() {
21
return
$this->results ? 1 : 0;
22
}
23
}
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:78
SearchNearMatchResultSet
A ISearchResultSet wrapper for TitleMatcher.
Definition
SearchNearMatchResultSet.php:8
SearchNearMatchResultSet\numRows
numRows()
Definition
SearchNearMatchResultSet.php:20
SearchNearMatchResultSet\__construct
__construct( $match)
Definition
SearchNearMatchResultSet.php:12
SearchResultSet
Definition
SearchResultSet.php:29
includes
search
SearchNearMatchResultSet.php
Generated on Thu Jun 27 2024 16:00:12 for MediaWiki by
1.10.0