MediaWiki  1.33.0
MediaWiki\Widget\Search\SimpleSearchResultWidget Class Reference

Renders a simple one-line result. More...

Inheritance diagram for MediaWiki\Widget\Search\SimpleSearchResultWidget:
Collaboration diagram for MediaWiki\Widget\Search\SimpleSearchResultWidget:

Public Member Functions

 __construct (SpecialSearch $specialSearch, LinkRenderer $linkRenderer)
 
 render (SearchResult $result, $terms, $position)
 

Protected Attributes

LinkRenderer $linkRenderer
 
SpecialSearch $specialSearch
 

Detailed Description

Renders a simple one-line result.

Deprecated:
since 1.31. Use other result widgets.

Definition at line 15 of file SimpleSearchResultWidget.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Widget\Search\SimpleSearchResultWidget::__construct ( SpecialSearch  $specialSearch,
LinkRenderer  $linkRenderer 
)

Member Function Documentation

◆ render()

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

Implements MediaWiki\Widget\Search\SearchResultWidget.

Definition at line 33 of file SimpleSearchResultWidget.php.

References $link, and $title.

Member Data Documentation

◆ $linkRenderer

LinkRenderer MediaWiki\Widget\Search\SimpleSearchResultWidget::$linkRenderer
protected

◆ $specialSearch

SpecialSearch MediaWiki\Widget\Search\SimpleSearchResultWidget::$specialSearch
protected

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