|
| | __construct (SpecialSearch $specialSearch, SearchEngineConfig $searchConfig, HookContainer $hookContainer, ILanguageConverter $languageConverter, NamespaceInfo $namespaceInfo, array $profiles) |
| |
| | render ( $profile, $term, $numResults, $totalResults, $approximateTotalResults, $offset, $isPowerSearch, array $options=[]) |
| |
|
| | getHookContainer () |
| |
| | getHookRunner () |
| |
| | makeSearchLink ( $term, $label, $tooltip, array $params=[]) |
| | Make a search link with some target namespaces.
|
| |
| | optionsHtml ( $term, $isPowerSearch, $profile) |
| | Generates HTML for advanced options available with the currently selected search profile.
|
| |
| | powerSearchBox ( $term, array $opts) |
| |
| | profileTabsHtml ( $profile, $term) |
| | Generates HTML for the list of available search profiles.
|
| |
| | shortDialogHtml ( $profile, $term, $numResults, $totalResults, $approximateTotalResults, $offset, array $options=[]) |
| |
| | startsWithImage ( $term) |
| | Check if query starts with image: prefix.
|
| |
Definition at line 18 of file SearchFormWidget.php.
◆ __construct()
◆ getHookContainer()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::getHookContainer |
( |
| ) |
|
|
protected |
◆ getHookRunner()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::getHookRunner |
( |
| ) |
|
|
protected |
◆ makeSearchLink()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::makeSearchLink |
( |
| $term, |
|
|
| $label, |
|
|
| $tooltip, |
|
|
array | $params = [] ) |
|
protected |
◆ optionsHtml()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::optionsHtml |
( |
| $term, |
|
|
| $isPowerSearch, |
|
|
| $profile ) |
|
protected |
◆ powerSearchBox()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::powerSearchBox |
( |
| $term, |
|
|
array | $opts ) |
|
protected |
◆ profileTabsHtml()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::profileTabsHtml |
( |
| $profile, |
|
|
| $term ) |
|
protected |
◆ render()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::render |
( |
| $profile, |
|
|
| $term, |
|
|
| $numResults, |
|
|
| $totalResults, |
|
|
| $approximateTotalResults, |
|
|
| $offset, |
|
|
| $isPowerSearch, |
|
|
array | $options = [] ) |
◆ shortDialogHtml()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::shortDialogHtml |
( |
| $profile, |
|
|
| $term, |
|
|
| $numResults, |
|
|
| $totalResults, |
|
|
| $approximateTotalResults, |
|
|
| $offset, |
|
|
array | $options = [] ) |
|
protected |
- Parameters
-
| string | $profile | The current search profile |
| string | $term | The current search term |
| int | $numResults | The number of results shown |
| int | $totalResults | The total estimated results found |
| bool | $approximateTotalResults | Whether $totalResults is approximate or not |
| int | $offset | Current offset in search results |
| array | $options | Widget options |
- Returns
- string HTML
Definition at line 105 of file SearchFormWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\render().
◆ startsWithImage()
| MediaWiki\Search\SearchWidgets\SearchFormWidget::startsWithImage |
( |
| $term | ) |
|
|
protected |
◆ $profiles
| array MediaWiki\Search\SearchWidgets\SearchFormWidget::$profiles |
|
protected |
◆ $searchConfig
◆ $specialSearch
| SpecialSearch MediaWiki\Search\SearchWidgets\SearchFormWidget::$specialSearch |
|
protected |
The documentation for this class was generated from the following file: