%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/includes/search/
Upload File :
Create Path :
Current File : /www/varak.net/wiki.varak.net/includes/search/SearchNearMatchResultSet.php

<?php
/**
 * A SearchResultSet wrapper for SearchNearMatcher
 */
class SearchNearMatchResultSet extends SearchResultSet {
	/**
	 * @param Title|null $match Title if matched, else null
	 */
	public function __construct( $match ) {
		if ( $match === null ) {
			$this->results = [];
		} else {
			$this->results = [ SearchResult::newFromTitle( $match, $this ) ];
		}
	}

	public function numRows() {
		return $this->results ? 1 : 0;
	}
}

Zerion Mini Shell 1.0