MediaWiki  1.28.0
MediaWiki\Widget\SearchInputWidget Class Reference

Search input widget. More...

Inheritance diagram for MediaWiki\Widget\SearchInputWidget:
Collaboration diagram for MediaWiki\Widget\SearchInputWidget:

Public Member Functions

 __construct (array $config=[])
 
 getConfig (&$config)
 
- Public Member Functions inherited from MediaWiki\Widget\TitleInputWidget
 __construct (array $config=[])
 
 getConfig (&$config)
 

Protected Member Functions

 getJavaScriptClassName ()
 
- Protected Member Functions inherited from MediaWiki\Widget\TitleInputWidget
 getJavaScriptClassName ()
 

Protected Attributes

 $dataLocation = 'header'
 
 $highlightFirst = false
 
 $performSearchOnClick = true
 
 $pushPending = false
 
 $validateTitle = false
 
- Protected Attributes inherited from MediaWiki\Widget\TitleInputWidget
 $highlightFirst = null
 
 $namespace = null
 
 $relative = null
 
 $suggestions = null
 
 $validateTitle = null
 

Detailed Description

Search input widget.

Definition at line 13 of file SearchInputWidget.php.

Constructor & Destructor Documentation

MediaWiki\Widget\SearchInputWidget::__construct ( array  $config = [])
Parameters
array$configConfiguration options
int | null$config,['pushPending']Whether the input should be visually marked as "pending", while requesting suggestions (default: true)
boolean | null$config,['performSearchOnClick']If true, the script will start a search whenever a user hits a suggestion. If false, the text of the suggestion is inserted into the text field only (default: true)
string$config,['dataLocation']Where the search input field will be used (header or content, default: header)

Definition at line 31 of file SearchInputWidget.php.

References MediaWiki\$config.

Member Function Documentation

MediaWiki\Widget\SearchInputWidget::getJavaScriptClassName ( )
protected

Definition at line 59 of file SearchInputWidget.php.

Member Data Documentation

MediaWiki\Widget\SearchInputWidget::$dataLocation = 'header'
protected

Definition at line 19 of file SearchInputWidget.php.

Referenced by MediaWiki\Widget\SearchInputWidget\getConfig().

MediaWiki\Widget\SearchInputWidget::$highlightFirst = false
protected

Definition at line 18 of file SearchInputWidget.php.

MediaWiki\Widget\SearchInputWidget::$performSearchOnClick = true
protected

Definition at line 16 of file SearchInputWidget.php.

Referenced by MediaWiki\Widget\SearchInputWidget\getConfig().

MediaWiki\Widget\SearchInputWidget::$pushPending = false
protected

Definition at line 15 of file SearchInputWidget.php.

Referenced by MediaWiki\Widget\SearchInputWidget\getConfig().

MediaWiki\Widget\SearchInputWidget::$validateTitle = false
protected

Definition at line 17 of file SearchInputWidget.php.


The documentation for this class was generated from the following file: