MediaWiki  1.30.0
MediaWiki\Widget\Search\SearchResultWidget Interface Reference

Renders a single search result to HTML. More...

Inheritance diagram for MediaWiki\Widget\Search\SearchResultWidget:

Public Member Functions

 render (SearchResult $result, $terms, $position)
 

Detailed Description

Renders a single search result to HTML.

Definition at line 10 of file SearchResultWidget.php.

Member Function Documentation

◆ render()

MediaWiki\Widget\Search\SearchResultWidget::render ( SearchResult  $result,
  $terms,
  $position 
)
Parameters
SearchResult$resultThe result to render
string$termsTerms to be highlighted (
See also
SearchResult::getTextSnippet)
Parameters
int$positionThe zero indexed result position, including offset
Returns
string HTML

Implemented in MediaWiki\Widget\Search\FullSearchResultWidget, MediaWiki\Widget\Search\InterwikiSearchResultWidget, and MediaWiki\Widget\Search\SimpleSearchResultWidget.


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