MediaWiki  1.28.0
SpecialSearchTestMockResultSet Class Reference
Inheritance diagram for SpecialSearchTestMockResultSet:
Collaboration diagram for SpecialSearchTestMockResultSet:

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)
 
 augmentResult (SearchResult $result)
 Returns extra data for specific result and store it in SearchResult object. More...
 
 extractResults ()
 Extract all the results in the result set as array. More...
 
 extractTitles ()
 Extract all the titles in the result set. More...
 
 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 beginning. 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...
 
 setAugmentedData ($name, $data)
 Sets augmented data for result set. 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...
 
array[] $extraData = []
 Set of result's extra data, indexed per result id and then per data item name. More...
 

Detailed Description

Definition at line 208 of file SpecialSearchTest.php.

Constructor & Destructor Documentation

SpecialSearchTestMockResultSet::__construct (   $suggestion = null,
  $rewrittenQuery = null,
array  $results = [],
  $containedSyntax = false 
)

Definition at line 212 of file SpecialSearchTest.php.

References SearchResultSet\$containedSyntax, $results, and $suggestion.

Member Function Documentation

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().

Member Data Documentation

SpecialSearchTestMockResultSet::$results
protected

Definition at line 209 of file SpecialSearchTest.php.

Referenced by __construct().

SpecialSearchTestMockResultSet::$suggestion
protected

Definition at line 210 of file SpecialSearchTest.php.

Referenced by __construct(), getSuggestionQuery(), and getSuggestionSnippet().


The documentation for this class was generated from the following file: