MediaWiki
1.33.0
|
Renders one or more SearchResultSets into a sidebar grouped by interwiki prefix. More...
Public Member Functions | |
__construct (SpecialSearch $specialSearch, SearchResultWidget $resultWidget, LinkRenderer $linkRenderer, InterwikiLookup $iwLookup, $showMultimedia=false) | |
render ( $term, $resultSets) | |
Protected Member Functions | |
footerHtml ( $term, $iwPrefix) | |
Generates an HTML footer for the given interwiki prefix. More... | |
iwIcon ( $iwPrefix) | |
Generates a custom OOUI icon element with a favicon as the image. More... | |
loadCustomCaptions () | |
Protected Attributes | |
string[] null | $customCaptions |
InterwikiLookup | $iwLookup |
LinkRenderer | $linkRenderer |
$output | $output |
SearchResultWidget | $resultWidget |
$showMultimedia | |
SpecialSearch | $specialSearch |
Renders one or more SearchResultSets into a sidebar grouped by interwiki prefix.
Includes a per-wiki header indicating where the results are from.
Definition at line 18 of file InterwikiSearchResultSetWidget.php.
MediaWiki\Widget\Search\InterwikiSearchResultSetWidget::__construct | ( | SpecialSearch | $specialSearch, |
SearchResultWidget | $resultWidget, | ||
LinkRenderer | $linkRenderer, | ||
InterwikiLookup | $iwLookup, | ||
$showMultimedia = false |
|||
) |
Definition at line 34 of file InterwikiSearchResultSetWidget.php.
References MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\$iwLookup, MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\$linkRenderer, MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\$resultWidget, MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\$showMultimedia, MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\$specialSearch, SpecialPage\getOutput(), and captcha-old\output.
|
protected |
Generates an HTML footer for the given interwiki prefix.
string | $term | User provided search term |
string | $iwPrefix | Interwiki prefix of wiki to show footer for |
Definition at line 124 of file InterwikiSearchResultSetWidget.php.
References $term, MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\iwIcon(), Title\makeTitle(), NS_SPECIAL, wfExpandUrl(), and wfParseUrl().
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\render().
|
protected |
Generates a custom OOUI icon element with a favicon as the image.
The favicon image URL is generated by parsing the interwiki URL and returning the default location of the favicon for that domain, which is assumed to be '/favicon.ico'.
string | $iwPrefix | Interwiki prefix |
Definition at line 168 of file InterwikiSearchResultSetWidget.php.
References wfExpandUrl(), and wfParseUrl().
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\footerHtml().
|
protected |
Definition at line 144 of file InterwikiSearchResultSetWidget.php.
References $line, as, and captcha-old\count.
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\render().
MediaWiki\Widget\Search\InterwikiSearchResultSetWidget::render | ( | $term, | |
$resultSets | |||
) |
string | $term | User provided search term |
SearchResultSet | SearchResultSet[] | $resultSets | List of interwiki results to render. |
Implements MediaWiki\Widget\Search\SearchResultSetWidget.
Definition at line 55 of file InterwikiSearchResultSetWidget.php.
References $term, as, MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\footerHtml(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\loadCustomCaptions(), and captcha-old\output.
Definition at line 24 of file InterwikiSearchResultSetWidget.php.
|
protected |
Definition at line 28 of file InterwikiSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\__construct().
|
protected |
Definition at line 26 of file InterwikiSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\__construct().
|
protected |
Definition at line 30 of file InterwikiSearchResultSetWidget.php.
|
protected |
Definition at line 22 of file InterwikiSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\__construct().
|
protected |
Definition at line 32 of file InterwikiSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\__construct().
|
protected |
Definition at line 20 of file InterwikiSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\__construct().