MediaWiki
REL1_39
SearchNearMatchResultSet.php
Go to the documentation of this file.
1
<?php
5
class
SearchNearMatchResultSet
extends
SearchResultSet
{
9
public
function
__construct
( $match ) {
10
if
( $match ===
null
) {
11
$this->results = [];
12
}
else
{
13
$this->results = [ SearchResult::newFromTitle( $match, $this ) ];
14
}
15
}
16
17
public
function
numRows
() {
18
return
$this->results ? 1 : 0;
19
}
20
}
SearchNearMatchResultSet
A ISearchResultSet wrapper for SearchNearMatcher.
Definition
SearchNearMatchResultSet.php:5
SearchNearMatchResultSet\numRows
numRows()
Definition
SearchNearMatchResultSet.php:17
SearchNearMatchResultSet\__construct
__construct( $match)
Definition
SearchNearMatchResultSet.php:9
SearchResultSet
Definition
SearchResultSet.php:27
includes
search
SearchNearMatchResultSet.php
Generated on Mon Dec 23 2024 06:24:32 for MediaWiki by
1.10.0