MediaWiki REL1_35
MediaWiki\Search\SearchWidgets\SimpleSearchResultWidget Class Reference

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

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

Public Member Functions

 __construct (SpecialSearch $specialSearch, LinkRenderer $linkRenderer)
 
 render (SearchResult $result, $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\Search\SearchWidgets\SimpleSearchResultWidget::__construct ( SpecialSearch  $specialSearch,
LinkRenderer  $linkRenderer 
)

Member Function Documentation

◆ render()

MediaWiki\Search\SearchWidgets\SimpleSearchResultWidget::render ( SearchResult  $result,
  $position 
)
Parameters
SearchResult$resultThe result to render
int$positionThe result position, including offset
Returns
string HTML

Implements MediaWiki\Search\SearchWidgets\SearchResultWidget.

Definition at line 32 of file SimpleSearchResultWidget.php.

References $title.

Member Data Documentation

◆ $linkRenderer

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

◆ $specialSearch

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

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