|
MediaWiki
master
|


Public Member Functions | |
| __construct ($suggestion=null, $rewrittenQuery=null, array $results=[], $containedSyntax=false) | |
| getQueryAfterRewrite () | |
| getQueryAfterRewriteSnippet () | |
| getSuggestionQuery () | |
| getSuggestionSnippet () | |
| getTotalHits () | |
| hasRewrittenQuery () | |
| hasSuggestion () | |
| numRows () | |
Public Member Functions inherited from SearchResultSet | |
| __construct ($containedSyntax=false) | |
| free () | |
| Frees the result set, if applicable. More... | |
| getInterwikiResults ($type=self::SECONDARY_RESULTS) | |
| Return a result set of hits on other (multiple) wikis associated with this one. More... | |
| getQueryAfterRewrite () | |
| getQueryAfterRewriteSnippet () | |
| getSuggestionQuery () | |
| getSuggestionSnippet () | |
| getTotalHits () | |
| Some search modes return a total hit count for the query in the entire article database. More... | |
| hasInterwikiResults ($type=self::SECONDARY_RESULTS) | |
| Check if there are results on other wikis. More... | |
| hasRewrittenQuery () | |
| Some search modes will run an alternative query that it thinks gives a better result than the provided search. More... | |
| hasSuggestion () | |
| Some search modes return a suggested alternate term if there are no exact hits. More... | |
| next () | |
| Fetches next search result, or false. More... | |
| numRows () | |
| rewind () | |
| Rewind result set back to begining. More... | |
| searchContainedSyntax () | |
| Did the search contain search syntax? If so, Special:Search won't offer the user a link to a create a page named by the search string because the name would contain the search syntax. More... | |
| termMatches () | |
| Fetch an array of regular expression fragments for matching the search terms as parsed by this engine in a text extract. More... | |
Protected Attributes | |
| $results | |
| $suggestion | |
Protected Attributes inherited from SearchResultSet | |
| $containedSyntax = false | |
| Types of interwiki results. More... | |
Definition at line 208 of file SpecialSearchTest.php.
| SpecialSearchTestMockResultSet::__construct | ( | $suggestion = null, |
|
$rewrittenQuery = null, |
|||
| array | $results = [], |
||
$containedSyntax = false |
|||
| ) |
Definition at line 212 of file SpecialSearchTest.php.
References SearchResultSet\$containedSyntax, $results, and $suggestion.
| SpecialSearchTestMockResultSet::getQueryAfterRewrite | ( | ) |
Definition at line 248 of file SpecialSearchTest.php.
| SpecialSearchTestMockResultSet::getQueryAfterRewriteSnippet | ( | ) |
Definition at line 252 of file SpecialSearchTest.php.
| SpecialSearchTestMockResultSet::getSuggestionQuery | ( | ) |
Definition at line 236 of file SpecialSearchTest.php.
References $suggestion.
| SpecialSearchTestMockResultSet::getSuggestionSnippet | ( | ) |
Definition at line 240 of file SpecialSearchTest.php.
References $suggestion.
| SpecialSearchTestMockResultSet::getTotalHits | ( | ) |
Definition at line 228 of file SpecialSearchTest.php.
References numRows().
| SpecialSearchTestMockResultSet::hasRewrittenQuery | ( | ) |
Definition at line 244 of file SpecialSearchTest.php.
| SpecialSearchTestMockResultSet::hasSuggestion | ( | ) |
Definition at line 232 of file SpecialSearchTest.php.
| SpecialSearchTestMockResultSet::numRows | ( | ) |
Definition at line 224 of file SpecialSearchTest.php.
Referenced by getTotalHits().
|
protected |
Definition at line 209 of file SpecialSearchTest.php.
Referenced by __construct().
|
protected |
Definition at line 210 of file SpecialSearchTest.php.
Referenced by __construct(), getSuggestionQuery(), and getSuggestionSnippet().