MediaWiki  master
SearchNearMatchResultSet.php
Go to the documentation of this file.
1 <?php
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 }
static newFromTitle( $title, ISearchResultSet $parentSet=null)
Return a new SearchResult and initializes it with a title.
A ISearchResultSet wrapper for SearchNearMatcher.