MediaWiki REL1_40
MediaWiki\Search\SearchWidgets\InterwikiSearchResultWidget Class Reference

Renders an enhanced interwiki result. More...

Inherits MediaWiki\Search\SearchWidgets\SearchResultWidget.

Collaboration diagram for MediaWiki\Search\SearchWidgets\InterwikiSearchResultWidget:

Public Member Functions

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

Protected Attributes

LinkRenderer $linkRenderer
 
SpecialSearch $specialSearch
 

Detailed Description

Renders an enhanced interwiki result.

Definition at line 14 of file InterwikiSearchResultWidget.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Search\SearchWidgets\InterwikiSearchResultWidget::__construct ( SpecialSearch $specialSearch,
LinkRenderer $linkRenderer )

Member Function Documentation

◆ render()

MediaWiki\Search\SearchWidgets\InterwikiSearchResultWidget::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 30 of file InterwikiSearchResultWidget.php.

References $title.

Member Data Documentation

◆ $linkRenderer

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

◆ $specialSearch

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

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