Merge "Rewrite pref cleanup script"
[lhc/web/wiklou.git] / includes / widget / UserInputWidget.php
1 <?php
2
3 namespace MediaWiki\Widget;
4
5 /**
6 * User input widget.
7 *
8 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
9 * @license MIT
10 */
11 class UserInputWidget extends \OOUI\TextInputWidget {
12
13 /**
14 * @param array $config Configuration options
15 */
16 public function __construct( array $config = [] ) {
17 parent::__construct( $config );
18
19 // Initialization
20 $this->addClasses( [ 'mw-widget-userInputWidget' ] );
21 }
22
23 protected function getJavaScriptClassName() {
24 return 'mw.widgets.UserInputWidget';
25 }
26
27 public function getConfig( &$config ) {
28 $config['$overlay'] = true;
29 return parent::getConfig( $config );
30 }
31 }