MediaWiki REL1_31
|
Public Member Functions | |
__construct ( $suggestion=null, $rewrittenQuery=null, array $results=[], $containedSyntax=false) | |
getQueryAfterRewrite () | |
getQueryAfterRewriteSnippet () | |
getSuggestionQuery () | |
getSuggestionSnippet () | |
getTotalHits () | |
Some search modes return a total hit count for the query in the entire article database. | |
hasRewrittenQuery () | |
Some search modes will run an alternative query that it thinks gives a better result than the provided search. | |
hasSuggestion () | |
Some search modes return a suggested alternate term if there are no exact hits. | |
numRows () | |
Public Member Functions inherited from SearchResultSet | |
__construct ( $containedSyntax=false) | |
augmentResult (SearchResult $result) | |
Returns extra data for specific result and store it in SearchResult object. | |
extractResults () | |
Extract all the results in the result set as array. | |
extractTitles () | |
Extract all the titles in the result set. | |
free () | |
Frees the result set, if applicable. | |
getInterwikiResults ( $type=self::SECONDARY_RESULTS) | |
Return a result set of hits on other (multiple) wikis associated with this one. | |
getOffset () | |
hasInterwikiResults ( $type=self::SECONDARY_RESULTS) | |
Check if there are results on other wikis. | |
next () | |
Fetches next search result, or false. | |
rewind () | |
Rewind result set back to beginning. | |
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. | |
setAugmentedData ( $name, $data) | |
Sets augmented data for result set. | |
termMatches () | |
Fetch an array of regular expression fragments for matching the search terms as parsed by this engine in a text extract. | |
Protected Attributes | |
$results | |
$suggestion | |
Protected Attributes inherited from SearchResultSet | |
$containedSyntax = false | |
Types of interwiki results. | |
array[] | $extraData = [] |
Set of result's extra data, indexed per result id and then per data item name. | |
Definition at line 249 of file SpecialSearchTest.php.
SpecialSearchTestMockResultSet::__construct | ( | $suggestion = null, | |
$rewrittenQuery = null, | |||
array | $results = [], | ||
$containedSyntax = false ) |
Definition at line 253 of file SpecialSearchTest.php.
References SearchResultSet\$containedSyntax, $results, and $suggestion.
SpecialSearchTestMockResultSet::getQueryAfterRewrite | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 289 of file SpecialSearchTest.php.
SpecialSearchTestMockResultSet::getQueryAfterRewriteSnippet | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 293 of file SpecialSearchTest.php.
SpecialSearchTestMockResultSet::getSuggestionQuery | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 277 of file SpecialSearchTest.php.
References $suggestion.
SpecialSearchTestMockResultSet::getSuggestionSnippet | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 281 of file SpecialSearchTest.php.
References $suggestion.
SpecialSearchTestMockResultSet::getTotalHits | ( | ) |
Some search modes return a total hit count for the query in the entire article database.
This may include pages in namespaces that would not be matched on the given settings.
Return null if no total hits number is supported.
Reimplemented from SearchResultSet.
Definition at line 269 of file SpecialSearchTest.php.
References numRows().
SpecialSearchTestMockResultSet::hasRewrittenQuery | ( | ) |
Some search modes will run an alternative query that it thinks gives a better result than the provided search.
Returns true if this has occured.
Reimplemented from SearchResultSet.
Definition at line 285 of file SpecialSearchTest.php.
SpecialSearchTestMockResultSet::hasSuggestion | ( | ) |
Some search modes return a suggested alternate term if there are no exact hits.
Returns true if there is one on this set.
Reimplemented from SearchResultSet.
Definition at line 273 of file SpecialSearchTest.php.
SpecialSearchTestMockResultSet::numRows | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 265 of file SpecialSearchTest.php.
Referenced by getTotalHits().
|
protected |
Definition at line 250 of file SpecialSearchTest.php.
Referenced by __construct().
|
protected |
Definition at line 251 of file SpecialSearchTest.php.
Referenced by __construct(), getSuggestionQuery(), and getSuggestionSnippet().