MediaWiki
1.34.0
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\numRows
numRows()
Definition:
SearchNearMatchResultSet.php:17
SearchResult\newFromTitle
static newFromTitle( $title, ISearchResultSet $parentSet=null)
Return a new SearchResult and initializes it with a title.
Definition:
SearchResult.php:55
SearchNearMatchResultSet
A ISearchResultSet wrapper for SearchNearMatcher.
Definition:
SearchNearMatchResultSet.php:5
SearchResultSet
Definition:
SearchResultSet.php:27
SearchNearMatchResultSet\__construct
__construct( $match)
Definition:
SearchNearMatchResultSet.php:9
includes
search
SearchNearMatchResultSet.php
Generated on Thu Dec 19 2019 14:54:50 for MediaWiki by
1.8.16