MediaWiki REL1_33
|
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) | |
render ( $term, $resultSets) | |
Protected Member Functions | |
headerHtml ( $iwPrefix, $term) | |
Generates an appropriate HTML header for the given interwiki prefix. | |
loadCustomCaptions () | |
Protected Attributes | |
string[] null | $customCaptions |
InterwikiLookup | $iwLookup |
LinkRenderer | $linkRenderer |
SearchResultWidget | $resultWidget |
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 19 of file SimpleSearchResultSetWidget.php.
MediaWiki\Widget\Search\SimpleSearchResultSetWidget::__construct | ( | SpecialSearch | $specialSearch, |
SearchResultWidget | $resultWidget, | ||
LinkRenderer | $linkRenderer, | ||
InterwikiLookup | $iwLookup | ||
) |
Definition at line 31 of file SimpleSearchResultSetWidget.php.
References MediaWiki\Widget\Search\SimpleSearchResultSetWidget\$iwLookup, MediaWiki\Widget\Search\SimpleSearchResultSetWidget\$linkRenderer, MediaWiki\Widget\Search\SimpleSearchResultSetWidget\$resultWidget, MediaWiki\Widget\Search\SimpleSearchResultSetWidget\$specialSearch, and wfDeprecated().
|
protected |
Generates an appropriate HTML header for the given interwiki prefix.
string | $iwPrefix | Interwiki prefix of wiki to show header for |
string | $term | User provided search term |
Definition at line 93 of file SimpleSearchResultSetWidget.php.
References $term, NS_SPECIAL, wfExpandUrl(), and wfParseUrl().
Referenced by MediaWiki\Widget\Search\SimpleSearchResultSetWidget\render().
|
protected |
Definition at line 117 of file SimpleSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\SimpleSearchResultSetWidget\render().
MediaWiki\Widget\Search\SimpleSearchResultSetWidget::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 50 of file SimpleSearchResultSetWidget.php.
References $out, $term, as, MediaWiki\Widget\Search\SimpleSearchResultSetWidget\headerHtml(), and MediaWiki\Widget\Search\SimpleSearchResultSetWidget\loadCustomCaptions().
|
protected |
Definition at line 25 of file SimpleSearchResultSetWidget.php.
|
protected |
Definition at line 29 of file SimpleSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\SimpleSearchResultSetWidget\__construct().
|
protected |
Definition at line 27 of file SimpleSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\SimpleSearchResultSetWidget\__construct().
|
protected |
Definition at line 23 of file SimpleSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\SimpleSearchResultSetWidget\__construct().
|
protected |
Definition at line 21 of file SimpleSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\SimpleSearchResultSetWidget\__construct().