MediaWiki  master
MediaWiki\Widget\Search\InterwikiSearchResultWidget Class Reference

Renders an enhanced interwiki result. More...

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

Public Member Functions

 __construct (SpecialSearch $specialSearch, LinkRenderer $linkRenderer)
 
 render (SearchResult $result, $terms, $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

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

Member Function Documentation

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

References $link, $title, SearchResult\getRedirectSnippet(), SearchResult\getRedirectTitle(), SearchResult\getTextSnippet(), SearchResult\getTitle(), SearchResult\getTitleSnippet(), and Html\rawElement().

Member Data Documentation

LinkRenderer MediaWiki\Widget\Search\InterwikiSearchResultWidget::$linkRenderer
protected
SpecialSearch MediaWiki\Widget\Search\InterwikiSearchResultWidget::$specialSearch
protected

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