MediaWiki REL1_32
|
Renders the search result area. More...
Public Member Functions | |
__construct (SpecialSearch $specialPage, SearchResultWidget $resultWidget, SearchResultSetWidget $sidebarWidget) | |
render ( $term, $offset, SearchResultSet $titleResultSet=null, SearchResultSet $textResultSet=null) | |
Protected Member Functions | |
header (Message $msg) | |
Generate a headline for a section of the search results. | |
renderResultSet (SearchResultSet $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\Widget\Search\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 108 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\render().
MediaWiki\Widget\Search\BasicSearchResultSetWidget::render | ( | $term, | |
$offset, | |||
SearchResultSet | $titleResultSet = null, | ||
SearchResultSet | $textResultSet = null ) |
string | $term | The search term to highlight |
int | $offset | The offset of the first result in the result set |
SearchResultSet | null | $titleResultSet | Results of searching only page titles |
SearchResultSet | null | $textResultSet | Results of general full text search. |
Definition at line 40 of file BasicSearchResultSetWidget.php.
References $out, $term, MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Widget\Search\BasicSearchResultSetWidget\header(), and MediaWiki\Widget\Search\BasicSearchResultSetWidget\renderResultSet().
|
protected |
SearchResultSet | $resultSet | The search results to render |
int | $offset | Offset of the first result in $resultSet |
Definition at line 119 of file BasicSearchResultSetWidget.php.
References MediaWiki\MediaWikiServices\getInstance(), and SearchResultSet\termMatches().
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\render().
|
protected |
Definition at line 19 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\__construct().
|
protected |
Definition at line 21 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\__construct().
|
protected |
Definition at line 17 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\__construct().