|
MediaWiki REL1_39
|

Public Member Functions | |
| __construct (SpecialSearch $specialSearch, SearchEngineConfig $searchConfig, HookContainer $hookContainer, ILanguageConverter $languageConverter, NamespaceInfo $namespaceInfo, array $profiles) | |
| render ( $profile, $term, $numResults, $totalResults, $offset, $isPowerSearch, array $options=[]) | |
Protected Member Functions | |
| 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, $offset, array $options=[]) | |
| startsWithImage ( $term) | |
| Check if query starts with image: prefix. | |
Protected Attributes | |
| array | $profiles |
| SearchEngineConfig | $searchConfig |
| SpecialSearch | $specialSearch |
Definition at line 15 of file SearchFormWidget.php.
| MediaWiki\Search\SearchWidgets\SearchFormWidget::__construct | ( | SpecialSearch | $specialSearch, |
| SearchEngineConfig | $searchConfig, | ||
| HookContainer | $hookContainer, | ||
| ILanguageConverter | $languageConverter, | ||
| NamespaceInfo | $namespaceInfo, | ||
| array | $profiles ) |
| SpecialSearch | $specialSearch | |
| SearchEngineConfig | $searchConfig | |
| HookContainer | $hookContainer | |
| ILanguageConverter | $languageConverter | |
| NamespaceInfo | $namespaceInfo | |
| array | $profiles |
Definition at line 39 of file SearchFormWidget.php.
References MediaWiki\Search\SearchWidgets\SearchFormWidget\$profiles, MediaWiki\Search\SearchWidgets\SearchFormWidget\$searchConfig, and MediaWiki\Search\SearchWidgets\SearchFormWidget\$specialSearch.
|
protected |
|
protected |
Definition at line 302 of file SearchFormWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\optionsHtml(), and MediaWiki\Search\SearchWidgets\SearchFormWidget\powerSearchBox().
|
protected |
Make a search link with some target namespaces.
| string | $term | The term to search for |
| string | $label | Link's text |
| string | $tooltip | Link's tooltip |
| array | $params | Query string parameters |
Definition at line 224 of file SearchFormWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\profileTabsHtml().
|
protected |
Generates HTML for advanced options available with the currently selected search profile.
| string | $term | User provided search term |
| bool | $isPowerSearch | Is the advanced search profile enabled? |
| string | $profile | The current search profile |
Definition at line 249 of file SearchFormWidget.php.
References MediaWiki\Search\SearchWidgets\SearchFormWidget\getHookRunner(), and MediaWiki\Search\SearchWidgets\SearchFormWidget\powerSearchBox().
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\render().
|
protected |
| string | $term | The current search term |
| array | $opts | Additional key/value pairs that will be submitted with the generated form. |
Definition at line 268 of file SearchFormWidget.php.
References MediaWiki\Search\SearchWidgets\SearchFormWidget\getHookRunner().
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\optionsHtml().
|
protected |
Generates HTML for the list of available search profiles.
| string | $profile | The currently selected profile |
| string | $term | The user provided search terms |
Definition at line 173 of file SearchFormWidget.php.
References $lang, MediaWiki\Search\SearchWidgets\SearchFormWidget\makeSearchLink(), and MediaWiki\Search\SearchWidgets\SearchFormWidget\startsWithImage().
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\render().
| MediaWiki\Search\SearchWidgets\SearchFormWidget::render | ( | $profile, | |
| $term, | |||
| $numResults, | |||
| $totalResults, | |||
| $offset, | |||
| $isPowerSearch, | |||
| array | $options = [] ) |
| 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 |
| int | $offset | Current offset in search results |
| bool | $isPowerSearch | Is the 'advanced' section open? |
| array | $options | Widget options |
Definition at line 66 of file SearchFormWidget.php.
References MediaWiki\Search\SearchWidgets\SearchFormWidget\optionsHtml(), MediaWiki\Search\SearchWidgets\SearchFormWidget\profileTabsHtml(), MediaWiki\Search\SearchWidgets\SearchFormWidget\shortDialogHtml(), and wfScript().
|
protected |
| 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 |
| int | $offset | Current offset in search results |
| array | $options | Widget options |
Definition at line 113 of file SearchFormWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\render().
|
protected |
Check if query starts with image: prefix.
| string | $term | The string to check |
Definition at line 209 of file SearchFormWidget.php.
References NS_FILE.
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\profileTabsHtml().
|
protected |
Definition at line 21 of file SearchFormWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\__construct().
|
protected |
Definition at line 19 of file SearchFormWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\__construct().
|
protected |
Definition at line 17 of file SearchFormWidget.php.
Referenced by MediaWiki\Search\SearchWidgets\SearchFormWidget\__construct().