MediaWiki REL1_34
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}
A ISearchResultSet wrapper for SearchNearMatcher.