MediaWiki REL1_34
SqlSearchResult Class Reference
Inheritance diagram for SqlSearchResult:
Collaboration diagram for SqlSearchResult:

Public Member Functions

 __construct (Title $title, array $terms)
 SqlSearchResult constructor.
 
 getTermMatches ()
 return string[]
 
 getTextSnippet ( $terms=[])
 
- Public Member Functions inherited from RevisionSearchResult
 __construct ( $title)
 
- Public Member Functions inherited from SearchResult
 __construct ()
 

Private Attributes

string[] $terms
 

Additional Inherited Members

- Static Public Member Functions inherited from SearchResult
static newFromTitle ( $title, ISearchResultSet $parentSet=null)
 Return a new SearchResult and initializes it with a title.
 

Detailed Description

Definition at line 25 of file SqlSearchResult.php.

Constructor & Destructor Documentation

◆ __construct()

SqlSearchResult::__construct ( Title  $title,
array  $terms 
)

SqlSearchResult constructor.

Parameters
Title$title
string[]$termslist of parsed terms

Definition at line 34 of file SqlSearchResult.php.

References $terms, and $title.

Member Function Documentation

◆ getTermMatches()

SqlSearchResult::getTermMatches ( )

return string[]

Definition at line 42 of file SqlSearchResult.php.

◆ getTextSnippet()

SqlSearchResult::getTextSnippet (   $terms = [])
Parameters
array$termsTerms to highlight (this parameter is deprecated)
Returns
string Highlighted text snippet, null (and not '') if not supported

Definition at line 50 of file SqlSearchResult.php.

References $wgAdvancedSearchHighlighting, and initText().

Member Data Documentation

◆ $terms

string [] SqlSearchResult::$terms
private

Definition at line 27 of file SqlSearchResult.php.

Referenced by __construct().


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