MediaWiki REL1_31
|
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 14 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 109 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 39 of file BasicSearchResultSetWidget.php.
References $out, $term, $wgContLang, 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 120 of file BasicSearchResultSetWidget.php.
References $wgContLang, SearchResultSet\next(), and SearchResultSet\termMatches().
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\render().
|
protected |
Definition at line 18 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\__construct().
|
protected |
Definition at line 20 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\__construct().
|
protected |
Definition at line 16 of file BasicSearchResultSetWidget.php.
Referenced by MediaWiki\Widget\Search\BasicSearchResultSetWidget\__construct().