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

Public Member Functions

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

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. More...

Detailed Description

Definition at line 27 of file SqlSearchResult.php.

Constructor & Destructor Documentation

◆ __construct()

SqlSearchResult::__construct ( Title  $title,
array  $terms 
string[]$termslist of parsed terms

Definition at line 35 of file SqlSearchResult.php.

References $title.

Member Function Documentation

◆ getTermMatches()

SqlSearchResult::getTermMatches ( )

Definition at line 43 of file SqlSearchResult.php.

◆ getTextSnippet()

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

Definition at line 51 of file SqlSearchResult.php.

References initText().

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