MediaWiki REL1_35
|
Renders the search result area. More...
Public Member Functions | |
__construct (SpecialSearch $specialPage, SearchResultWidget $resultWidget, SearchResultSetWidget $sidebarWidget) | |
render ( $term, $offset, ISearchResultSet $titleResultSet=null, ISearchResultSet $textResultSet=null) | |
Protected Member Functions | |
header (Message $msg) | |
Generate a headline for a section of the search results. | |
renderResultSet (ISearchResultSet $resultSet, $offset) | |
Protected Attributes | |
SearchResultWidget | $resultWidget |
InterwikiSearchResultSetWidget | $sidebarWidget |
SpecialSearch | $specialPage |
Renders the search result area.
Handles Title and Full-Text search results, along with inline and sidebar secondary (interwiki) results.
Definition at line 15 of file BasicSearchResultSetWidget.php.
MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget::__construct | ( | SpecialSearch | $specialPage, |
SearchResultWidget | $resultWidget, | ||
SearchResultSetWidget | $sidebarWidget | ||
) |
|
protected |
Generate a headline for a section of the search results.
In prior implementations this was rendering wikitext of '==$1==', but seems a waste to call the full parser to generate this tiny bit of html
Message | $msg | i18n message to use as header |
Definition at line 110 of file BasicSearchResultSetWidget.php.
References Message\escaped().
Referenced by MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget\render().
MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget::render | ( | $term, | |
$offset, | |||
ISearchResultSet | $titleResultSet = null , |
||
ISearchResultSet | $textResultSet = null |
||
) |
string | $term | The search term to highlight |
int | $offset | The offset of the first result in the result set |
ISearchResultSet | null | $titleResultSet | Results of searching only page titles |
ISearchResultSet | null | $textResultSet | Results of general full text search. |
Definition at line 40 of file BasicSearchResultSetWidget.php.
References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget\header(), and MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget\renderResultSet().
|
protected |
ISearchResultSet | $resultSet | The search results to render |
int | $offset | Offset of the first result in $resultSet |
Definition at line 121 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget\render().
|
protected |
Definition at line 19 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget\__construct().
|
protected |
Definition at line 21 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget\__construct().
|
protected |
Definition at line 17 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\BasicSearchResultSetWidget\__construct().